home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 September / My Disc.iso / patch / Unreal Tournament 2004 / ut2004-winpatch3270.exe / UT2004-Patch / System / Onslaught.u / ScriptText8.TextBuffer < prev    next >
Unknown  |  2004-07-27  |  25.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 60 8f 03 2f 2f 2d 2d 2d |........|`..//---|
|00000010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000040| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 0a 2f 2f 0d 0a 2f 2f |--------|..//..//|
|00000050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0a 63 6c 61 |--------|---..cla|
|00000090| 73 73 20 4f 4e 53 48 55 | 44 4f 6e 73 6c 61 75 67 |ss ONSHU|DOnslaug|
|000000a0| 68 74 20 65 78 74 65 6e | 64 73 20 48 75 64 43 54 |ht exten|ds HudCT|
|000000b0| 65 61 6d 44 65 61 74 68 | 4d 61 74 63 68 0d 0a 20 |eamDeath|Match.. |
|000000c0| 20 20 20 63 6f 6e 66 69 | 67 28 75 73 65 72 29 3b | confi|g(user);|
|000000d0| 0d 0a 0d 0a 76 61 72 20 | 63 6f 6e 66 69 67 20 66 |....var |config f|
|000000e0| 6c 6f 61 74 20 52 61 64 | 61 72 53 63 61 6c 65 2c |loat Rad|arScale,|
|000000f0| 20 52 61 64 61 72 54 72 | 61 6e 73 2c 20 49 63 6f | RadarTr|ans, Ico|
|00000100| 6e 53 63 61 6c 65 2c 20 | 52 61 64 61 72 50 6f 73 |nScale, |RadarPos|
|00000110| 58 2c 20 52 61 64 61 72 | 50 6f 73 59 3b 0d 0a 76 |X, Radar|PosY;..v|
|00000120| 61 72 20 66 6c 6f 61 74 | 20 52 61 64 61 72 4d 61 |ar float| RadarMa|
|00000130| 78 52 61 6e 67 65 2c 20 | 52 61 64 61 72 52 61 6e |xRange, |RadarRan|
|00000140| 67 65 3b 0d 0a 76 61 72 | 20 4f 4e 53 50 6f 77 65 |ge;..var| ONSPowe|
|00000150| 72 43 6f 72 65 20 46 69 | 6e 61 6c 43 6f 72 65 5b |rCore Fi|nalCore[|
|00000160| 32 5d 3b 0d 0a 76 61 72 | 20 4f 4e 53 50 6f 77 65 |2];..var| ONSPowe|
|00000170| 72 43 6f 72 65 20 4e 6f | 64 65 3b 0d 0a 76 61 72 |rCore No|de;..var|
|00000180| 20 4f 4e 53 50 6c 61 79 | 65 72 52 65 70 6c 69 63 | ONSPlay|erReplic|
|00000190| 61 74 69 6f 6e 49 6e 66 | 6f 20 4f 77 6e 65 72 50 |ationInf|o OwnerP|
|000001a0| 52 49 3b 0d 0a 76 61 72 | 20 70 72 6f 74 65 63 74 |RI;..var| protect|
|000001b0| 65 64 20 61 72 72 61 79 | 3c 50 6f 77 65 72 4c 69 |ed array|<PowerLi|
|000001c0| 6e 6b 3e 20 50 6f 77 65 | 72 4c 69 6e 6b 73 3b 0d |nk> Powe|rLinks;.|
|000001d0| 0a 0d 0a 2f 2f 76 61 72 | 20 61 72 72 61 79 3c 63 |...//var| array<c|
|000001e0| 6f 6c 6f 72 3e 20 50 6f | 77 65 72 4c 69 6e 6b 73 |olor> Po|werLinks|
|000001f0| 3b 0d 0a 76 61 72 20 62 | 6f 6f 6c 20 62 4d 61 70 |;..var b|ool bMap|
|00000200| 44 69 73 61 62 6c 65 64 | 3b 0d 0a 76 61 72 20 62 |Disabled|;..var b|
|00000210| 6f 6f 6c 20 62 52 65 63 | 65 69 76 65 64 4c 69 6e |ool bRec|eivedLin|
|00000220| 6b 73 3b 0d 0a 76 61 72 | 20 76 65 63 74 6f 72 20 |ks;..var| vector |
|00000230| 4d 61 70 43 65 6e 74 65 | 72 3b 0d 0a 76 61 72 20 |MapCente|r;..var |
|00000240| 66 6c 6f 61 74 20 43 6f | 6c 6f 72 50 65 72 63 65 |float Co|lorPerce|
|00000250| 6e 74 3b 0d 0a 0d 0a 76 | 61 72 28 29 20 20 20 4d |nt;....v|ar() M|
|00000260| 61 74 65 72 69 61 6c 20 | 20 20 20 20 20 20 20 20 |aterial | |
|00000270| 20 20 20 48 65 61 6c 74 | 68 42 61 72 42 61 63 6b | Healt|hBarBack|
|00000280| 4d 61 74 3b 0d 0a 76 61 | 72 28 29 20 20 20 4d 61 |Mat;..va|r() Ma|
|00000290| 74 65 72 69 61 6c 20 20 | 20 20 20 20 20 20 20 20 |terial | |
|000002a0| 20 20 48 65 61 6c 74 68 | 42 61 72 4d 61 74 3b 0d | Health|BarMat;.|
|000002b0| 0a 76 61 72 28 29 20 20 | 20 66 6c 6f 61 74 20 20 |.var() | float |
|000002c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 48 65 61 | | Hea|
|000002d0| 6c 74 68 42 61 72 57 69 | 64 74 68 3b 0d 0a 76 61 |lthBarWi|dth;..va|
|000002e0| 72 28 29 20 20 20 66 6c | 6f 61 74 20 20 20 20 20 |r() fl|oat |
|000002f0| 20 20 20 20 20 20 20 20 | 20 20 48 65 61 6c 74 68 | | Health|
|00000300| 42 61 72 48 65 69 67 68 | 74 2c 20 48 65 61 6c 74 |BarHeigh|t, Healt|
|00000310| 68 42 61 72 50 6f 73 69 | 74 69 6f 6e 3b 0d 0a 76 |hBarPosi|tion;..v|
|00000320| 61 72 28 29 20 20 20 66 | 6c 6f 61 74 20 20 20 20 |ar() f|loat |
|00000330| 20 20 20 20 20 20 20 20 | 20 20 20 48 65 61 6c 74 | | Healt|
|00000340| 68 42 61 72 56 69 65 77 | 44 69 73 74 3b 0d 0a 76 |hBarView|Dist;..v|
|00000350| 61 72 28 29 20 20 20 4d | 61 74 65 72 69 61 6c 20 |ar() M|aterial |
|00000360| 20 20 20 20 20 20 20 20 | 20 20 20 42 6f 72 64 65 | | Borde|
|00000370| 72 4d 61 74 3b 0d 0a 76 | 61 72 28 29 20 20 20 63 |rMat;..v|ar() c|
|00000380| 6f 6c 6f 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |olor | |
|00000390| 20 20 20 4e 65 75 74 72 | 61 6c 43 6f 6c 6f 72 3b | Neutr|alColor;|
|000003a0| 0d 0a 76 61 72 28 29 20 | 20 20 63 6f 6c 6f 72 20 |..var() | color |
|000003b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 74 | | At|
|000003c0| 74 61 63 6b 43 6f 6c 6f | 72 41 3b 0d 0a 76 61 72 |tackColo|rA;..var|
|000003d0| 28 29 20 20 20 63 6f 6c | 6f 72 20 20 20 20 20 20 |() col|or |
|000003e0| 20 20 20 20 20 20 20 20 | 20 41 74 74 61 63 6b 43 | | AttackC|
|000003f0| 6f 6c 6f 72 42 3b 0d 0a | 76 61 72 28 29 20 20 20 |olorB;..|var() |
|00000400| 63 6f 6c 6f 72 20 20 20 | 20 20 20 20 20 20 20 20 |color | |
|00000410| 20 20 20 20 53 65 76 65 | 72 65 64 43 6f 6c 6f 72 | Seve|redColor|
|00000420| 41 3b 0d 0a 76 61 72 28 | 29 20 20 20 63 6f 6c 6f |A;..var(|) colo|
|00000430| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r | |
|00000440| 53 65 76 65 72 65 64 43 | 6f 6c 6f 72 42 3b 0d 0a |SeveredC|olorB;..|
|00000450| 76 61 72 28 29 20 20 20 | 63 6f 6c 6f 72 20 20 20 |var() |color |
|00000460| 20 20 20 20 20 20 20 20 | 20 20 20 20 4c 69 6e 6b | | Link|
|00000470| 43 6f 6c 6f 72 5b 33 5d | 3b 0d 0a 0d 0a 76 61 72 |Color[3]|;....var|
|00000480| 28 29 20 20 20 53 70 72 | 69 74 65 57 69 64 67 65 |() Spr|iteWidge|
|00000490| 74 20 20 20 20 53 79 6d | 62 6f 6c 47 42 5b 32 5d |t Sym|bolGB[2]|
|000004a0| 3b 0d 0a 76 61 72 28 29 | 20 20 20 53 70 72 69 74 |;..var()| Sprit|
|000004b0| 65 57 69 64 67 65 74 20 | 20 20 20 43 6f 72 65 57 |eWidget | CoreW|
|000004c0| 69 64 67 65 74 73 5b 32 | 5d 3b 0d 0a 76 61 72 28 |idgets[2|];..var(|
|000004d0| 29 20 20 20 4e 75 6d 65 | 72 69 63 57 69 64 67 65 |) Nume|ricWidge|
|000004e0| 74 20 20 20 43 6f 72 65 | 48 65 61 6c 74 68 57 69 |t Core|HealthWi|
|000004f0| 64 67 65 74 73 5b 32 5d | 3b 0d 0a 0d 0a 76 61 72 |dgets[2]|;....var|
|00000500| 28 29 20 20 20 4e 75 6d | 65 72 69 63 57 69 64 67 |() Num|ericWidg|
|00000510| 65 74 20 20 20 4e 6f 64 | 65 4c 61 62 65 6c 57 69 |et Nod|eLabelWi|
|00000520| 64 67 65 74 3b 0d 0a 0d | 0a 23 45 58 45 43 20 4f |dget;...|.#EXEC O|
|00000530| 42 4a 20 4c 4f 41 44 20 | 46 49 4c 45 3d 49 6e 74 |BJ LOAD |FILE=Int|
|00000540| 65 72 66 61 63 65 43 6f | 6e 74 65 6e 74 2e 75 74 |erfaceCo|ntent.ut|
|00000550| 78 0d 0a 23 45 58 45 43 | 20 4f 42 4a 20 4c 4f 41 |x..#EXEC| OBJ LOA|
|00000560| 44 20 46 49 4c 45 3d 4f | 4e 53 49 6e 74 65 72 66 |D FILE=O|NSInterf|
|00000570| 61 63 65 2d 54 58 2e 75 | 74 78 0d 0a 0d 0a 73 69 |ace-TX.u|tx....si|
|00000580| 6d 75 6c 61 74 65 64 20 | 65 76 65 6e 74 20 50 6f |mulated |event Po|
|00000590| 73 74 42 65 67 69 6e 50 | 6c 61 79 28 29 0d 0a 7b |stBeginP|lay()..{|
|000005a0| 0d 0a 09 6c 6f 63 61 6c | 20 4f 4e 53 50 6f 77 65 |...local| ONSPowe|
|000005b0| 72 43 6f 72 65 20 43 6f | 72 65 3b 0d 0a 09 6c 6f |rCore Co|re;...lo|
|000005c0| 63 61 6c 20 54 65 72 72 | 61 69 6e 49 6e 66 6f 20 |cal Terr|ainInfo |
|000005d0| 54 2c 20 50 72 69 6d 61 | 72 79 54 65 72 72 61 69 |T, Prima|ryTerrai|
|000005e0| 6e 3b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |n;...loc|al int i|
|000005f0| 3b 0d 0a 0d 0a 09 53 75 | 70 65 72 2e 50 6f 73 74 |;.....Su|per.Post|
|00000600| 42 65 67 69 6e 50 6c 61 | 79 28 29 3b 0d 0a 0d 0a |BeginPla|y();....|
|00000610| 09 66 6f 72 65 61 63 68 | 20 41 6c 6c 41 63 74 6f |.foreach| AllActo|
|00000620| 72 73 28 20 63 6c 61 73 | 73 27 4f 4e 53 50 6f 77 |rs( clas|s'ONSPow|
|00000630| 65 72 43 6f 72 65 27 2c | 20 43 6f 72 65 20 29 0d |erCore',| Core ).|
|00000640| 0a 09 09 69 66 20 28 20 | 43 6f 72 65 2e 62 46 69 |...if ( |Core.bFi|
|00000650| 6e 61 6c 43 6f 72 65 20 | 29 0d 0a 09 09 09 46 69 |nalCore |).....Fi|
|00000660| 6e 61 6c 43 6f 72 65 5b | 43 6f 72 65 2e 44 65 66 |nalCore[|Core.Def|
|00000670| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 5d 20 |enderTea|mIndex] |
|00000680| 3d 20 43 6f 72 65 3b 0d | 0a 0d 0a 09 4e 6f 64 65 |= Core;.|....Node|
|00000690| 20 3d 20 46 69 6e 61 6c | 43 6f 72 65 5b 30 5d 3b | = Final|Core[0];|
|000006a0| 0d 0a 0d 0a 09 2f 2f 20 | 53 65 74 75 70 20 6c 69 |.....// |Setup li|
|000006b0| 6e 6b 73 20 72 69 67 68 | 74 20 61 77 61 79 2c 20 |nks righ|t away, |
|000006c0| 65 76 65 6e 20 74 68 6f | 75 67 68 20 74 68 65 73 |even tho|ugh thes|
|000006d0| 65 20 77 69 6c 6c 20 62 | 65 20 6f 76 65 72 77 72 |e will b|e overwr|
|000006e0| 69 74 74 65 6e 20 77 68 | 65 6e 20 74 68 65 20 6e |itten wh|en the n|
|000006f0| 65 77 20 6c 69 6e 6b 20 | 73 65 74 75 70 20 69 73 |ew link |setup is|
|00000700| 20 72 65 63 65 69 76 65 | 64 20 66 72 6f 6d 20 74 | receive|d from t|
|00000710| 68 65 20 73 65 72 76 65 | 72 0d 0a 09 69 66 20 28 |he serve|r...if (|
|00000720| 20 4c 65 76 65 6c 2e 4e | 65 74 4d 6f 64 65 20 3d | Level.N|etMode =|
|00000730| 3d 20 4e 4d 5f 43 6c 69 | 65 6e 74 20 29 0d 0a 09 |= NM_Cli|ent )...|
|00000740| 09 53 65 74 75 70 4c 69 | 6e 6b 73 28 29 3b 0d 0a |.SetupLi|nks();..|
|00000750| 0d 0a 09 2f 2f 20 41 73 | 73 69 67 6e 20 50 6f 77 |...// As|sign Pow|
|00000760| 65 72 4e 6f 64 65 20 6e | 75 6d 62 65 72 73 0d 0a |erNode n|umbers..|
|00000770| 09 43 6f 72 65 20 3d 20 | 4e 6f 64 65 3b 0d 0a 09 |.Core = |Node;...|
|00000780| 64 6f 0d 0a 09 7b 0d 0a | 20 20 20 20 20 20 20 20 |do...{..| |
|00000790| 69 66 20 28 4f 4e 53 50 | 6f 77 65 72 4e 6f 64 65 |if (ONSP|owerNode|
|000007a0| 28 43 6f 72 65 29 20 21 | 3d 20 4e 6f 6e 65 29 0d |(Core) !|= None).|
|000007b0| 0a 20 20 20 20 20 20 20 | 20 7b 0d 0a 20 20 20 20 |. | {.. |
|000007c0| 20 20 20 20 20 20 20 20 | 43 6f 72 65 2e 4e 6f 64 | |Core.Nod|
|000007d0| 65 4e 75 6d 20 3d 20 2b | 2b 69 3b 0d 0a 20 20 20 |eNum = +|+i;.. |
|000007e0| 20 20 20 20 20 20 20 20 | 20 43 6f 72 65 2e 55 70 | | Core.Up|
|000007f0| 64 61 74 65 4c 6f 63 61 | 74 69 6f 6e 4e 61 6d 65 |dateLoca|tionName|
|00000800| 28 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 7d 0d 0a |();.. | }..|
|00000810| 0d 0a 20 20 20 20 20 20 | 20 20 43 6f 72 65 20 3d |.. | Core =|
|00000820| 20 43 6f 72 65 2e 4e 65 | 78 74 43 6f 72 65 3b 0d | Core.Ne|xtCore;.|
|00000830| 0a 09 7d 20 75 6e 74 69 | 6c 20 28 20 43 6f 72 65 |..} unti|l ( Core|
|00000840| 20 3d 3d 20 4e 6f 6e 65 | 20 7c 7c 20 43 6f 72 65 | == None| || Core|
|00000850| 20 3d 3d 20 4e 6f 64 65 | 20 29 3b 0d 0a 0d 0a 09 | == Node| );.....|
|00000860| 2f 2f 20 44 65 74 65 72 | 6d 69 6e 65 20 70 72 69 |// Deter|mine pri|
|00000870| 6d 61 72 79 20 74 65 72 | 72 61 69 6e 0d 0a 20 20 |mary ter|rain.. |
|00000880| 20 20 66 6f 72 65 61 63 | 68 20 41 6c 6c 41 63 74 | foreac|h AllAct|
|00000890| 6f 72 73 28 63 6c 61 73 | 73 27 54 65 72 72 61 69 |ors(clas|s'Terrai|
|000008a0| 6e 49 6e 66 6f 27 2c 20 | 54 29 0d 0a 20 20 20 20 |nInfo', |T).. |
|000008b0| 7b 0d 0a 20 20 20 20 20 | 20 20 20 50 72 69 6d 61 |{.. | Prima|
|000008c0| 72 79 54 65 72 72 61 69 | 6e 20 3d 20 54 3b 0d 0a |ryTerrai|n = T;..|
|000008d0| 20 20 20 20 20 20 20 20 | 69 66 20 28 54 2e 54 61 | |if (T.Ta|
|000008e0| 67 20 3d 3d 20 27 50 72 | 69 6d 61 72 79 54 65 72 |g == 'Pr|imaryTer|
|000008f0| 72 61 69 6e 27 29 0d 0a | 20 20 20 20 20 20 20 20 |rain')..| |
|00000900| 20 20 20 20 42 72 65 61 | 6b 3b 0d 0a 20 20 20 20 | Brea|k;.. |
|00000910| 7d 0d 0a 0d 0a 20 20 20 | 20 2f 2f 20 53 65 74 20 |}.... | // Set |
|00000920| 52 61 64 61 72 4d 61 78 | 52 61 6e 67 65 20 74 6f |RadarMax|Range to|
|00000930| 20 73 69 7a 65 20 6f 66 | 20 70 72 69 6d 61 72 79 | size of| primary|
|00000940| 20 74 65 72 72 61 69 6e | 0d 0a 20 20 20 20 69 66 | terrain|.. if|
|00000950| 20 28 4c 65 76 65 6c 2e | 62 55 73 65 54 65 72 72 | (Level.|bUseTerr|
|00000960| 61 69 6e 46 6f 72 52 61 | 64 61 72 52 61 6e 67 65 |ainForRa|darRange|
|00000970| 20 26 26 20 50 72 69 6d | 61 72 79 54 65 72 72 61 | && Prim|aryTerra|
|00000980| 69 6e 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 20 20 20 |in != No|ne).. |
|00000990| 20 20 20 20 20 52 61 64 | 61 72 52 61 6e 67 65 20 | Rad|arRange |
|000009a0| 3d 20 61 62 73 28 50 72 | 69 6d 61 72 79 54 65 72 |= abs(Pr|imaryTer|
|000009b0| 72 61 69 6e 2e 54 65 72 | 72 61 69 6e 53 63 61 6c |rain.Ter|rainScal|
|000009c0| 65 2e 58 20 2a 20 50 72 | 69 6d 61 72 79 54 65 72 |e.X * Pr|imaryTer|
|000009d0| 72 61 69 6e 2e 54 65 72 | 72 61 69 6e 4d 61 70 2e |rain.Ter|rainMap.|
|000009e0| 55 53 69 7a 65 29 20 2f | 20 32 2e 30 3b 0d 0a 20 |USize) /| 2.0;.. |
|000009f0| 20 20 20 65 6c 73 65 20 | 69 66 20 28 4c 65 76 65 | else |if (Leve|
|00000a00| 6c 2e 43 75 73 74 6f 6d | 52 61 64 61 72 52 61 6e |l.Custom|RadarRan|
|00000a10| 67 65 20 3e 20 30 29 0d | 0a 20 20 20 20 20 20 20 |ge > 0).|. |
|00000a20| 20 52 61 64 61 72 52 61 | 6e 67 65 20 3d 20 43 6c | RadarRa|nge = Cl|
|00000a30| 61 6d 70 28 4c 65 76 65 | 6c 2e 43 75 73 74 6f 6d |amp(Leve|l.Custom|
|00000a40| 52 61 64 61 72 52 61 6e | 67 65 2c 20 35 30 30 2e |RadarRan|ge, 500.|
|00000a50| 30 2c 20 64 65 66 61 75 | 6c 74 2e 52 61 64 61 72 |0, defau|lt.Radar|
|00000a60| 4d 61 78 52 61 6e 67 65 | 29 3b 0d 0a 0d 0a 20 20 |MaxRange|);.... |
|00000a70| 20 20 53 65 74 54 69 6d | 65 72 28 31 2e 30 2c 20 | SetTim|er(1.0, |
|00000a80| 74 72 75 65 29 3b 0d 0a | 20 20 20 20 54 69 6d 65 |true);..| Time|
|00000a90| 72 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |r();..}.|...simul|
|00000aa0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 53 65 |ated fun|ction Se|
|00000ab0| 74 75 70 4c 69 6e 6b 73 | 28 29 0d 0a 7b 0d 0a 09 |tupLinks|()..{...|
|00000ac0| 6c 6f 63 61 6c 20 4f 4e | 53 50 6f 77 65 72 43 6f |local ON|SPowerCo|
|00000ad0| 72 65 20 43 6f 72 65 3b | 0d 0a 09 6c 6f 63 61 6c |re Core;|...local|
|00000ae0| 20 69 6e 74 20 69 3b 0d | 0a 0d 0a 09 69 66 20 28 | int i;.|....if (|
|00000af0| 20 4e 6f 64 65 20 3d 3d | 20 4e 6f 6e 65 20 29 0d | Node ==| None ).|
|00000b00| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 2f 2f |...retur|n;....//|
|00000b10| 09 6c 6f 67 28 4e 61 6d | 65 40 22 53 65 74 75 70 |.log(Nam|e@"Setup|
|00000b20| 4c 69 6e 6b 73 22 29 3b | 0d 0a 09 43 6f 72 65 20 |Links");|...Core |
|00000b30| 3d 20 4e 6f 64 65 3b 0d | 0a 09 64 6f 0d 0a 09 7b |= Node;.|..do...{|
|00000b40| 0d 0a 09 09 66 6f 72 20 | 28 20 69 20 3d 20 30 3b |....for |( i = 0;|
|00000b50| 20 69 20 3c 20 43 6f 72 | 65 2e 50 6f 77 65 72 4c | i < Cor|e.PowerL|
|00000b60| 69 6e 6b 73 2e 4c 65 6e | 67 74 68 3b 20 69 2b 2b |inks.Len|gth; i++|
|00000b70| 20 29 0d 0a 09 09 09 41 | 64 64 4c 69 6e 6b 28 43 | ).....A|ddLink(C|
|00000b80| 6f 72 65 2c 20 43 6f 72 | 65 2e 50 6f 77 65 72 4c |ore, Cor|e.PowerL|
|00000b90| 69 6e 6b 73 5b 69 5d 29 | 3b 0d 0a 0d 0a 09 09 43 |inks[i])|;......C|
|00000ba0| 6f 72 65 20 3d 20 43 6f | 72 65 2e 4e 65 78 74 43 |ore = Co|re.NextC|
|00000bb0| 6f 72 65 3b 0d 0a 09 7d | 20 75 6e 74 69 6c 20 28 |ore;...}| until (|
|00000bc0| 20 43 6f 72 65 20 3d 3d | 20 4e 6f 6e 65 20 7c 7c | Core ==| None |||
|00000bd0| 20 43 6f 72 65 20 3d 3d | 20 4e 6f 64 65 20 29 3b | Core ==| Node );|
|00000be0| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00000bf0| 20 66 75 6e 63 74 69 6f | 6e 20 52 65 63 65 69 76 | functio|n Receiv|
|00000c00| 65 4c 69 6e 6b 28 20 4f | 4e 53 50 6f 77 65 72 43 |eLink( O|NSPowerC|
|00000c10| 6f 72 65 20 41 2c 20 4f | 4e 53 50 6f 77 65 72 43 |ore A, O|NSPowerC|
|00000c20| 6f 72 65 20 42 20 29 0d | 0a 7b 0d 0a 09 62 52 65 |ore B ).|.{...bRe|
|00000c30| 63 65 69 76 65 64 4c 69 | 6e 6b 73 20 3d 20 54 72 |ceivedLi|nks = Tr|
|00000c40| 75 65 3b 0d 0a 0d 0a 2f | 2f 09 6c 6f 67 28 4e 61 |ue;..../|/.log(Na|
|00000c50| 6d 65 40 22 52 65 63 65 | 69 76 65 4c 69 6e 6b 20 |me@"Rece|iveLink |
|00000c60| 20 41 3a 22 24 41 2e 4e | 61 6d 65 40 22 42 3a 22 | A:"$A.N|ame@"B:"|
|00000c70| 24 42 2e 4e 61 6d 65 29 | 3b 0d 0a 09 41 64 64 4c |$B.Name)|;...AddL|
|00000c80| 69 6e 6b 28 41 2c 42 29 | 3b 0d 0a 2f 2f 09 41 2e |ink(A,B)|;..//.A.|
|00000c90| 41 64 64 50 6f 77 65 72 | 4c 69 6e 6b 28 42 29 3b |AddPower|Link(B);|
|00000ca0| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00000cb0| 20 66 75 6e 63 74 69 6f | 6e 20 41 64 64 4c 69 6e | functio|n AddLin|
|00000cc0| 6b 28 20 4f 4e 53 50 6f | 77 65 72 43 6f 72 65 20 |k( ONSPo|werCore |
|00000cd0| 41 2c 20 4f 4e 53 50 6f | 77 65 72 43 6f 72 65 20 |A, ONSPo|werCore |
|00000ce0| 42 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 50 |B )..{..|.local P|
|00000cf0| 6f 77 65 72 4c 69 6e 6b | 20 4c 69 6e 6b 3b 0d 0a |owerLink| Link;..|
|00000d00| 0d 0a 09 69 66 20 28 20 | 48 61 73 4c 69 6e 6b 28 |...if ( |HasLink(|
|00000d10| 41 2c 42 29 20 29 0d 0a | 09 09 72 65 74 75 72 6e |A,B) )..|..return|
|00000d20| 3b 0d 0a 0d 0a 09 4c 69 | 6e 6b 20 3d 20 53 70 61 |;.....Li|nk = Spa|
|00000d30| 77 6e 28 63 6c 61 73 73 | 27 50 6f 77 65 72 4c 69 |wn(class|'PowerLi|
|00000d40| 6e 6b 27 29 3b 0d 0a 09 | 4c 69 6e 6b 2e 53 65 74 |nk');...|Link.Set|
|00000d50| 4e 6f 64 65 73 28 41 2c | 42 29 3b 0d 0a 0d 0a 09 |Nodes(A,|B);.....|
|00000d60| 50 6f 77 65 72 4c 69 6e | 6b 73 5b 50 6f 77 65 72 |PowerLin|ks[Power|
|00000d70| 4c 69 6e 6b 73 2e 4c 65 | 6e 67 74 68 5d 20 3d 20 |Links.Le|ngth] = |
|00000d80| 4c 69 6e 6b 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |Link;..}|....simu|
|00000d90| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 52 |lated fu|nction R|
|00000da0| 65 6d 6f 76 65 4c 69 6e | 6b 28 20 4f 4e 53 50 6f |emoveLin|k( ONSPo|
|00000db0| 77 65 72 43 6f 72 65 20 | 41 2c 20 4f 4e 53 50 6f |werCore |A, ONSPo|
|00000dc0| 77 65 72 43 6f 72 65 20 | 42 20 29 0d 0a 7b 0d 0a |werCore |B )..{..|
|00000dd0| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 0d |.local i|nt i;...|
|00000de0| 0a 2f 2f 09 6c 6f 67 28 | 4e 61 6d 65 40 22 52 65 |.//.log(|Name@"Re|
|00000df0| 6d 6f 76 65 20 6c 69 6e | 6b 20 66 72 6f 6d 20 41 |move lin|k from A|
|00000e00| 3a 22 24 41 2e 4e 61 6d | 65 40 22 74 6f 22 40 42 |:"$A.Nam|e@"to"@B|
|00000e10| 2e 4e 61 6d 65 29 3b 0d | 0a 0d 0a 09 66 6f 72 20 |.Name);.|....for |
|00000e20| 28 20 69 20 3d 20 50 6f | 77 65 72 4c 69 6e 6b 73 |( i = Po|werLinks|
|00000e30| 2e 4c 65 6e 67 74 68 20 | 2d 20 31 3b 20 69 20 3e |.Length |- 1; i >|
|00000e40| 3d 20 30 3b 20 69 2d 2d | 20 29 0d 0a 09 7b 0d 0a |= 0; i--| )...{..|
|00000e50| 09 09 69 66 20 28 20 50 | 6f 77 65 72 4c 69 6e 6b |..if ( P|owerLink|
|00000e60| 73 5b 69 5d 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a |s[i] == |None )..|
|00000e70| 09 09 7b 0d 0a 09 09 09 | 50 6f 77 65 72 4c 69 6e |..{.....|PowerLin|
|00000e80| 6b 73 2e 52 65 6d 6f 76 | 65 28 69 2c 31 29 3b 0d |ks.Remov|e(i,1);.|
|00000e90| 0a 09 09 09 63 6f 6e 74 | 69 6e 75 65 3b 0d 0a 09 |....cont|inue;...|
|00000ea0| 09 7d 0d 0a 0d 0a 09 09 | 69 66 20 28 20 50 6f 77 |.}......|if ( Pow|
|00000eb0| 65 72 4c 69 6e 6b 73 5b | 69 5d 2e 48 61 73 4e 6f |erLinks[|i].HasNo|
|00000ec0| 64 65 73 28 41 2c 42 29 | 20 29 0d 0a 09 09 7b 0d |des(A,B)| )....{.|
|00000ed0| 0a 2f 2f 09 09 09 6c 6f | 67 28 4e 61 6d 65 40 22 |.//...lo|g(Name@"|
|00000ee0| 66 6f 75 6e 64 20 70 6f | 77 65 72 6c 69 6e 6b 20 |found po|werlink |
|00000ef0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 74 68 6f 73 65 |containi|ng those|
|00000f00| 20 6e 6f 64 65 73 3a 22 | 24 50 6f 77 65 72 4c 69 | nodes:"|$PowerLi|
|00000f10| 6e 6b 73 5b 69 5d 2e 4e | 61 6d 65 29 3b 0d 0a 09 |nks[i].N|ame);...|
|00000f20| 09 09 50 6f 77 65 72 4c | 69 6e 6b 73 5b 69 5d 2e |..PowerL|inks[i].|
|00000f30| 44 65 73 74 72 6f 79 28 | 29 3b 0d 0a 09 09 09 50 |Destroy(|);.....P|
|00000f40| 6f 77 65 72 4c 69 6e 6b | 73 2e 52 65 6d 6f 76 65 |owerLink|s.Remove|
|00000f50| 28 69 2c 31 29 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d |(i,1);..|..}...}.|
|00000f60| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00000f70| 66 75 6e 63 74 69 6f 6e | 20 52 65 73 65 74 4c 69 |function| ResetLi|
|00000f80| 6e 6b 73 28 29 0d 0a 7b | 0d 0a 2f 2f 09 6c 6f 67 |nks()..{|..//.log|
|00000f90| 28 4e 61 6d 65 40 22 52 | 65 73 65 74 4c 69 6e 6b |(Name@"R|esetLink|
|00000fa0| 73 22 29 3b 0d 0a 09 43 | 6c 65 61 72 4c 69 6e 6b |s");...C|learLink|
|00000fb0| 73 28 29 3b 0d 0a 09 52 | 65 71 75 65 73 74 50 6f |s();...R|equestPo|
|00000fc0| 77 65 72 4c 69 6e 6b 73 | 28 29 3b 0d 0a 0d 0a 2f |werLinks|();..../|
|00000fd0| 2a 0d 0a 09 69 66 20 28 | 20 4c 65 76 65 6c 2e 4e |*...if (| Level.N|
|00000fe0| 65 74 4d 6f 64 65 20 3d | 3d 20 4e 4d 5f 43 6c 69 |etMode =|= NM_Cli|
|00000ff0| 65 6e 74 20 29 0d 0a 09 | 7b 0d 0a 09 09 43 6f 72 |ent )...|{....Cor|
|00001000| 65 20 3d 20 4e 6f 64 65 | 3b 0d 0a 09 09 64 6f 0d |e = Node|;....do.|
|00001010| 0a 09 09 7b 0d 0a 09 09 | 09 43 6f 72 65 2e 50 6f |...{....|.Core.Po|
|00001020| 77 65 72 43 6f 72 65 52 | 65 73 65 74 28 29 3b 0d |werCoreR|eset();.|
|00001030| 0a 09 09 09 43 6f 72 65 | 20 3d 20 43 6f 72 65 2e |....Core| = Core.|
|00001040| 4e 65 78 74 43 6f 72 65 | 3b 0d 0a 09 09 7d 20 75 |NextCore|;....} u|
|00001050| 6e 74 69 6c 20 28 20 43 | 6f 72 65 20 3d 3d 20 4e |ntil ( C|ore == N|
|00001060| 6f 6e 65 20 7c 7c 20 43 | 6f 72 65 20 3d 3d 20 4e |one || C|ore == N|
|00001070| 6f 64 65 20 29 3b 0d 0a | 09 7d 0d 0a 2a 2f 0d 0a |ode );..|.}..*/..|
|00001080| 7d 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 66 |}....sim|ulated f|
|00001090| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 48 61 73 |unction |bool Has|
|000010a0| 4c 69 6e 6b 28 20 4f 4e | 53 50 6f 77 65 72 43 6f |Link( ON|SPowerCo|
|000010b0| 72 65 20 41 2c 20 4f 4e | 53 50 6f 77 65 72 43 6f |re A, ON|SPowerCo|
|000010c0| 72 65 20 42 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |re B )..|{...loca|
|000010d0| 6c 20 69 6e 74 20 69 3b | 0d 0a 0d 0a 09 66 6f 72 |l int i;|.....for|
|000010e0| 20 28 20 69 20 3d 20 50 | 6f 77 65 72 4c 69 6e 6b | ( i = P|owerLink|
|000010f0| 73 2e 4c 65 6e 67 74 68 | 20 2d 20 31 3b 20 69 20 |s.Length| - 1; i |
|00001100| 3e 3d 20 30 3b 20 69 2d | 2d 20 29 0d 0a 09 7b 0d |>= 0; i-|- )...{.|
|00001110| 0a 09 09 69 66 20 28 20 | 50 6f 77 65 72 4c 69 6e |...if ( |PowerLin|
|00001120| 6b 73 5b 69 5d 20 3d 3d | 20 4e 6f 6e 65 20 29 0d |ks[i] ==| None ).|
|00001130| 0a 09 09 7b 0d 0a 09 09 | 09 50 6f 77 65 72 4c 69 |...{....|.PowerLi|
|00001140| 6e 6b 73 2e 52 65 6d 6f | 76 65 28 69 2c 31 29 3b |nks.Remo|ve(i,1);|
|00001150| 0d 0a 09 09 09 63 6f 6e | 74 69 6e 75 65 3b 0d 0a |.....con|tinue;..|
|00001160| 09 09 7d 0d 0a 0d 0a 09 | 09 69 66 20 28 20 50 6f |..}.....|.if ( Po|
|00001170| 77 65 72 4c 69 6e 6b 73 | 5b 69 5d 2e 48 61 73 4e |werLinks|[i].HasN|
|00001180| 6f 64 65 73 28 41 2c 42 | 29 20 29 0d 0a 09 09 09 |odes(A,B|) ).....|
|00001190| 72 65 74 75 72 6e 20 54 | 72 75 65 3b 0d 0a 09 7d |return T|rue;...}|
|000011a0| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 46 61 6c 73 |.....ret|urn Fals|
|000011b0| 65 3b 0d 0a 7d 0d 0a 0d | 0a 73 69 6d 75 6c 61 74 |e;..}...|.simulat|
|000011c0| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 43 6c 65 61 |ed funct|ion Clea|
|000011d0| 72 4c 69 6e 6b 73 28 29 | 0d 0a 7b 0d 0a 09 6c 6f |rLinks()|..{...lo|
|000011e0| 63 61 6c 20 69 6e 74 20 | 69 3b 0d 0a 09 62 52 65 |cal int |i;...bRe|
|000011f0| 63 65 69 76 65 64 4c 69 | 6e 6b 73 20 3d 20 46 61 |ceivedLi|nks = Fa|
|00001200| 6c 73 65 3b 0d 0a 0d 0a | 2f 2f 09 6c 6f 67 28 4e |lse;....|//.log(N|
|00001210| 61 6d 65 40 22 43 6c 65 | 61 72 4c 69 6e 6b 73 22 |ame@"Cle|arLinks"|
|00001220| 40 50 6f 77 65 72 4c 69 | 6e 6b 73 2e 4c 65 6e 67 |@PowerLi|nks.Leng|
|00001230| 74 68 29 3b 0d 0a 09 66 | 6f 72 20 28 20 69 20 3d |th);...f|or ( i =|
|00001240| 20 30 3b 20 69 20 3c 20 | 50 6f 77 65 72 4c 69 6e | 0; i < |PowerLin|
|00001250| 6b 73 2e 4c 65 6e 67 74 | 68 3b 20 69 2b 2b 20 29 |ks.Lengt|h; i++ )|
|00001260| 0d 0a 09 09 69 66 20 28 | 20 50 6f 77 65 72 4c 69 |....if (| PowerLi|
|00001270| 6e 6b 73 5b 69 5d 20 21 | 3d 20 4e 6f 6e 65 20 29 |nks[i] !|= None )|
|00001280| 0d 0a 09 09 09 50 6f 77 | 65 72 4c 69 6e 6b 73 5b |.....Pow|erLinks[|
|00001290| 69 5d 2e 44 65 73 74 72 | 6f 79 28 29 3b 0d 0a 0d |i].Destr|oy();...|
|000012a0| 0a 09 50 6f 77 65 72 4c | 69 6e 6b 73 2e 52 65 6d |..PowerL|inks.Rem|
|000012b0| 6f 76 65 28 30 2c 20 50 | 6f 77 65 72 4c 69 6e 6b |ove(0, P|owerLink|
|000012c0| 73 2e 4c 65 6e 67 74 68 | 29 3b 0d 0a 7d 0d 0a 0d |s.Length|);..}...|
|000012d0| 0a 2f 2f 20 46 69 6e 64 | 73 20 61 20 50 6f 77 65 |.// Find|s a Powe|
|000012e0| 72 43 6f 72 65 20 77 69 | 74 68 69 6e 20 32 35 30 |rCore wi|thin 250|
|000012f0| 30 20 75 6e 69 74 73 20 | 6f 66 20 50 6f 73 58 2f |0 units |of PosX/|
|00001300| 50 6f 73 59 20 6f 6e 20 | 74 68 65 20 52 61 64 61 |PosY on |the Rada|
|00001310| 72 4d 61 70 20 28 61 73 | 73 75 6d 65 73 20 61 20 |rMap (as|sumes a |
|00001320| 6d 61 70 20 63 65 6e 74 | 65 72 65 64 20 61 74 20 |map cent|ered at |
|00001330| 30 2c 30 2c 30 29 0d 0a | 73 69 6d 75 6c 61 74 65 |0,0,0)..|simulate|
|00001340| 64 20 66 75 6e 63 74 69 | 6f 6e 20 4f 4e 53 50 6f |d functi|on ONSPo|
|00001350| 77 65 72 43 6f 72 65 20 | 4c 6f 63 61 74 65 50 6f |werCore |LocatePo|
|00001360| 77 65 72 43 6f 72 65 28 | 66 6c 6f 61 74 20 50 6f |werCore(|float Po|
|00001370| 73 58 2c 20 66 6c 6f 61 | 74 20 50 6f 73 59 2c 20 |sX, floa|t PosY, |
|00001380| 66 6c 6f 61 74 20 52 61 | 64 61 72 57 69 64 74 68 |float Ra|darWidth|
|00001390| 29 0d 0a 7b 0d 0a 20 20 | 20 20 6c 6f 63 61 6c 20 |)..{.. | local |
|000013a0| 66 6c 6f 61 74 20 57 6f | 72 6c 64 54 6f 4d 61 70 |float Wo|rldToMap|
|000013b0| 53 63 61 6c 65 46 61 63 | 74 6f 72 2c 20 44 69 73 |ScaleFac|tor, Dis|
|000013c0| 74 61 6e 63 65 2c 20 4c | 6f 77 65 73 74 44 69 73 |tance, L|owestDis|
|000013d0| 74 61 6e 63 65 3b 0d 0a | 20 20 20 20 6c 6f 63 61 |tance;..| loca|
|000013e0| 6c 20 76 65 63 74 6f 72 | 20 57 6f 72 6c 64 4c 6f |l vector| WorldLo|
|000013f0| 63 61 74 69 6f 6e 2c 20 | 44 69 73 74 61 6e 63 65 |cation, |Distance|
|00001400| 56 65 63 74 6f 72 3b 0d | 0a 20 20 20 20 6c 6f 63 |Vector;.|. loc|
|00001410| 61 6c 20 4f 4e 53 50 6f | 77 65 72 43 6f 72 65 20 |al ONSPo|werCore |
|00001420| 42 65 73 74 43 6f 72 65 | 2c 20 43 6f 72 65 3b 0d |BestCore|, Core;.|
|00001430| 0a 0d 0a 09 69 66 20 28 | 4e 6f 64 65 20 3d 3d 20 |....if (|Node == |
|00001440| 4e 6f 6e 65 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |None)...|.return |
|00001450| 4e 6f 6e 65 3b 0d 0a 0d | 0a 20 20 20 20 57 6f 72 |None;...|. Wor|
|00001460| 6c 64 54 6f 4d 61 70 53 | 63 61 6c 65 46 61 63 74 |ldToMapS|caleFact|
|00001470| 6f 72 20 3d 20 52 61 64 | 61 72 52 61 6e 67 65 2f |or = Rad|arRange/|
|00001480| 52 61 64 61 72 57 69 64 | 74 68 3b 0d 0a 0d 0a 20 |RadarWid|th;.... |
|00001490| 20 20 20 57 6f 72 6c 64 | 4c 6f 63 61 74 69 6f 6e | World|Location|
|000014a0| 2e 58 20 3d 20 50 6f 73 | 58 20 2a 20 57 6f 72 6c |.X = Pos|X * Worl|
|000014b0| 64 54 6f 4d 61 70 53 63 | 61 6c 65 46 61 63 74 6f |dToMapSc|aleFacto|
|000014c0| 72 3b 0d 0a 20 20 20 20 | 57 6f 72 6c 64 4c 6f 63 |r;.. |WorldLoc|
|000014d0| 61 74 69 6f 6e 2e 59 20 | 3d 20 50 6f 73 59 20 2a |ation.Y |= PosY *|
|000014e0| 20 57 6f 72 6c 64 54 6f | 4d 61 70 53 63 61 6c 65 | WorldTo|MapScale|
|000014f0| 46 61 63 74 6f 72 3b 0d | 0a 0d 0a 20 20 20 20 4c |Factor;.|... L|
|00001500| 6f 77 65 73 74 44 69 73 | 74 61 6e 63 65 20 3d 20 |owestDis|tance = |
|00001510| 32 35 30 30 2e 30 3b 0d | 0a 0d 0a 09 43 6f 72 65 |2500.0;.|....Core|
|00001520| 20 3d 20 4e 6f 64 65 3b | 0d 0a 09 64 6f 0d 0a 09 | = Node;|...do...|
|00001530| 7b 0d 0a 20 20 20 20 20 | 20 20 20 44 69 73 74 61 |{.. | Dista|
|00001540| 6e 63 65 56 65 63 74 6f | 72 20 3d 20 43 6f 72 65 |nceVecto|r = Core|
|00001550| 2e 4c 6f 63 61 74 69 6f | 6e 20 2d 20 57 6f 72 6c |.Locatio|n - Worl|
|00001560| 64 4c 6f 63 61 74 69 6f | 6e 3b 0d 0a 20 20 20 20 |dLocatio|n;.. |
|00001570| 20 20 20 20 44 69 73 74 | 61 6e 63 65 56 65 63 74 | Dist|anceVect|
|00001580| 6f 72 2e 5a 20 3d 20 30 | 3b 0d 0a 09 09 44 69 73 |or.Z = 0|;....Dis|
|00001590| 74 61 6e 63 65 20 3d 20 | 56 53 69 7a 65 28 44 69 |tance = |VSize(Di|
|000015a0| 73 74 61 6e 63 65 56 65 | 63 74 6f 72 29 3b 0d 0a |stanceVe|ctor);..|
|000015b0| 20 20 20 20 20 20 20 20 | 69 66 20 28 44 69 73 74 | |if (Dist|
|000015c0| 61 6e 63 65 20 3c 20 4c | 6f 77 65 73 74 44 69 73 |ance < L|owestDis|
|000015d0| 74 61 6e 63 65 29 0d 0a | 20 20 20 20 20 20 20 20 |tance)..| |
|000015e0| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 42 |{.. | B|
|000015f0| 65 73 74 43 6f 72 65 20 | 3d 20 43 6f 72 65 3b 0d |estCore |= Core;.|
|00001600| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 4c 6f 77 |. | Low|
|00001610| 65 73 74 44 69 73 74 61 | 6e 63 65 20 3d 20 44 69 |estDista|nce = Di|
|00001620| 73 74 61 6e 63 65 3b 0d | 0a 20 20 20 20 20 20 20 |stance;.|. |
|00001630| 20 7d 0d 0a 0d 0a 09 09 | 43 6f 72 65 20 3d 20 43 | }......|Core = C|
|00001640| 6f 72 65 2e 4e 65 78 74 | 43 6f 72 65 3b 0d 0a 20 |ore.Next|Core;.. |
|00001650| 20 20 20 7d 20 75 6e 74 | 69 6c 20 28 20 43 6f 72 | } unt|il ( Cor|
|00001660| 65 20 3d 3d 20 4e 6f 6e | 65 20 7c 7c 20 43 6f 72 |e == Non|e || Cor|
|00001670| 65 20 3d 3d 20 4e 6f 64 | 65 20 29 3b 0d 0a 0d 0a |e == Nod|e );....|
|00001680| 20 20 20 20 72 65 74 75 | 72 6e 20 42 65 73 74 43 | retu|rn BestC|
|00001690| 6f 72 65 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |ore;..}.|...simul|
|000016a0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 44 72 |ated fun|ction Dr|
|000016b0| 61 77 52 61 64 61 72 4d | 61 70 28 43 61 6e 76 61 |awRadarM|ap(Canva|
|000016c0| 73 20 43 2c 20 66 6c 6f | 61 74 20 43 65 6e 74 65 |s C, flo|at Cente|
|000016d0| 72 50 6f 73 58 2c 20 66 | 6c 6f 61 74 20 43 65 6e |rPosX, f|loat Cen|
|000016e0| 74 65 72 50 6f 73 59 2c | 20 66 6c 6f 61 74 20 52 |terPosY,| float R|
|000016f0| 61 64 61 72 57 69 64 74 | 68 2c 20 62 6f 6f 6c 20 |adarWidt|h, bool |
|00001700| 62 53 68 6f 77 44 69 73 | 61 62 6c 65 64 4e 6f 64 |bShowDis|abledNod|
|00001710| 65 73 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 66 |es)..{..|.local f|
|00001720| 6c 6f 61 74 20 50 61 77 | 6e 49 63 6f 6e 53 69 7a |loat Paw|nIconSiz|
|00001730| 65 2c 20 50 6c 61 79 65 | 72 49 63 6f 6e 53 69 7a |e, Playe|rIconSiz|
|00001740| 65 2c 20 43 6f 72 65 49 | 63 6f 6e 53 69 7a 65 2c |e, CoreI|conSize,|
|00001750| 20 4d 61 70 53 63 61 6c | 65 2c 20 4d 61 70 52 61 | MapScal|e, MapRa|
|00001760| 64 61 72 57 69 64 74 68 | 3b 0d 0a 09 6c 6f 63 61 |darWidth|;...loca|
|00001770| 6c 20 76 65 63 74 6f 72 | 20 48 55 44 4c 6f 63 61 |l vector| HUDLoca|
|00001780| 74 69 6f 6e 3b 0d 0a 09 | 6c 6f 63 61 6c 20 46 69 |tion;...|local Fi|
|00001790| 6e 61 6c 42 6c 65 6e 64 | 20 50 6c 61 79 65 72 49 |nalBlend| PlayerI|
|000017a0| 63 6f 6e 3b 0d 0a 09 6c | 6f 63 61 6c 20 41 63 74 |con;...l|ocal Act|
|000017b0| 6f 72 20 41 3b 0d 0a 09 | 6c 6f 63 61 6c 20 4f 4e |or A;...|local ON|
|000017c0| 53 50 6f 77 65 72 43 6f | 72 65 20 43 75 72 43 6f |SPowerCo|re CurCo|
|000017d0| 72 65 3b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 |re;...lo|cal int |
|000017e0| 69 3b 0d 0a 09 6c 6f 63 | 61 6c 20 70 6c 61 6e 65 |i;...loc|al plane|
|000017f0| 20 53 61 76 65 64 4d 6f | 64 75 6c 61 74 69 6f 6e | SavedMo|dulation|
|00001800| 3b 0d 0a 0d 0a 09 53 61 | 76 65 64 4d 6f 64 75 6c |;.....Sa|vedModul|
|00001810| 61 74 69 6f 6e 20 3d 20 | 43 2e 43 6f 6c 6f 72 4d |ation = |C.ColorM|
|00001820| 6f 64 75 6c 61 74 65 3b | 0d 0a 0d 0a 09 43 2e 43 |odulate;|.....C.C|
|00001830| 6f 6c 6f 72 4d 6f 64 75 | 6c 61 74 65 2e 58 20 3d |olorModu|late.X =|
|00001840| 20 31 3b 0d 0a 09 43 2e | 43 6f 6c 6f 72 4d 6f 64 | 1;...C.|ColorMod|
|00001850| 75 6c 61 74 65 2e 59 20 | 3d 20 31 3b 0d 0a 09 43 |ulate.Y |= 1;...C|
|00001860| 2e 43 6f 6c 6f 72 4d 6f | 64 75 6c 61 74 65 2e 5a |.ColorMo|dulate.Z|
|00001870| 20 3d 20 31 3b 0d 0a 09 | 43 2e 43 6f 6c 6f 72 4d | = 1;...|C.ColorM|
|00001880| 6f 64 75 6c 61 74 65 2e | 57 20 3d 20 31 3b 0d 0a |odulate.|W = 1;..|
|00001890| 0d 0a 09 2f 2f 20 4d 61 | 6b 65 20 73 75 72 65 20 |...// Ma|ke sure |
|000018a0| 74 68 61 74 20 74 68 65 | 20 63 61 6e 76 61 73 20 |that the| canvas |
|000018b0| 73 74 79 6c 65 20 69 73 | 20 61 6c 70 68 61 0d 0a |style is| alpha..|
|000018c0| 09 43 2e 53 74 79 6c 65 | 20 3d 20 45 52 65 6e 64 |.C.Style| = ERend|
|000018d0| 65 72 53 74 79 6c 65 2e | 53 54 59 5f 41 6c 70 68 |erStyle.|STY_Alph|
|000018e0| 61 3b 0d 0a 0d 0a 09 4d | 61 70 52 61 64 61 72 57 |a;.....M|apRadarW|
|000018f0| 69 64 74 68 20 3d 20 52 | 61 64 61 72 57 69 64 74 |idth = R|adarWidt|
|00001900| 68 3b 0d 0a 20 20 20 20 | 69 66 20 28 50 61 77 6e |h;.. |if (Pawn|
|00001910| 4f 77 6e 65 72 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |Owner !=| None)..|
|00001920| 20 20 20 20 7b 0d 0a 2f | 2f 20 20 20 20 09 4d 61 | {../|/ .Ma|
|00001930| 70 43 65 6e 74 65 72 2e | 58 20 3d 20 46 43 6c 61 |pCenter.|X = FCla|
|00001940| 6d 70 28 50 61 77 6e 4f | 77 6e 65 72 2e 4c 6f 63 |mp(PawnO|wner.Loc|
|00001950| 61 74 69 6f 6e 2e 58 2c | 20 2d 52 61 64 61 72 4d |ation.X,| -RadarM|
|00001960| 61 78 52 61 6e 67 65 20 | 2b 20 52 61 64 61 72 52 |axRange |+ RadarR|
|00001970| 61 6e 67 65 2c 20 52 61 | 64 61 72 4d 61 78 52 61 |ange, Ra|darMaxRa|
|00001980| 6e 67 65 20 2d 20 52 61 | 64 61 72 52 61 6e 67 65 |nge - Ra|darRange|
|00001990| 29 3b 0d 0a 2f 2f 20 20 | 20 20 09 4d 61 70 43 65 |);..// | .MapCe|
|000019a0| 6e 74 65 72 2e 59 20 3d | 20 46 43 6c 61 6d 70 28 |nter.Y =| FClamp(|
|000019b0| 50 61 77 6e 4f 77 6e 65 | 72 2e 4c 6f 63 61 74 69 |PawnOwne|r.Locati|
|000019c0| 6f 6e 2e 59 2c 20 2d 52 | 61 64 61 72 4d 61 78 52 |on.Y, -R|adarMaxR|
|000019d0| 61 6e 67 65 20 2b 20 52 | 61 64 61 72 52 61 6e 67 |ange + R|adarRang|
|000019e0| 65 2c 20 52 61 64 61 72 | 4d 61 78 52 61 6e 67 65 |e, Radar|MaxRange|
|000019f0| 20 2d 20 52 61 64 61 72 | 52 61 6e 67 65 29 3b 0d | - Radar|Range);.|
|00001a00| 0a 20 20 20 20 20 20 20 | 20 4d 61 70 43 65 6e 74 |. | MapCent|
|00001a10| 65 72 2e 58 20 3d 20 30 | 2e 30 3b 0d 0a 20 20 20 |er.X = 0|.0;.. |
|00001a20| 20 20 20 20 20 4d 61 70 | 43 65 6e 74 65 72 2e 59 | Map|Center.Y|
|00001a30| 20 3d 20 30 2e 30 3b 0d | 0a 20 20 20 20 7d 0d 0a | = 0.0;.|. }..|
|00001a40| 20 20 20 20 65 6c 73 65 | 0d 0a 20 20 20 20 20 20 | else|.. |
|00001a50| 20 20 4d 61 70 43 65 6e | 74 65 72 20 3d 20 76 65 | MapCen|ter = ve|
|00001a60| 63 74 28 30 2c 30 2c 30 | 29 3b 0d 0a 0d 0a 09 48 |ct(0,0,0|);.....H|
|00001a70| 55 44 4c 6f 63 61 74 69 | 6f 6e 2e 58 20 3d 20 52 |UDLocati|on.X = R|
|00001a80| 61 64 61 72 57 69 64 74 | 68 3b 0d 0a 09 48 55 44 |adarWidt|h;...HUD|
|00001a90| 4c 6f 63 61 74 69 6f 6e | 2e 59 20 3d 20 52 61 64 |Location|.Y = Rad|
|00001aa0| 61 72 52 61 6e 67 65 3b | 0d 0a 09 48 55 44 4c 6f |arRange;|...HUDLo|
|00001ab0| 63 61 74 69 6f 6e 2e 5a | 20 3d 20 52 61 64 61 72 |cation.Z| = Radar|
|00001ac0| 54 72 61 6e 73 3b 0d 0a | 0d 0a 09 44 72 61 77 4d |Trans;..|...DrawM|
|00001ad0| 61 70 49 6d 61 67 65 28 | 20 43 2c 20 4c 65 76 65 |apImage(| C, Leve|
|00001ae0| 6c 2e 52 61 64 61 72 4d | 61 70 49 6d 61 67 65 2c |l.RadarM|apImage,|
|00001af0| 20 43 65 6e 74 65 72 50 | 6f 73 58 2c 20 43 65 6e | CenterP|osX, Cen|
|00001b00| 74 65 72 50 6f 73 59 2c | 20 4d 61 70 43 65 6e 74 |terPosY,| MapCent|
|00001b10| 65 72 2e 58 2c 20 4d 61 | 70 43 65 6e 74 65 72 2e |er.X, Ma|pCenter.|
|00001b20| 59 2c 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 20 29 |Y, HUDLo|cation )|
|00001b30| 3b 0d 0a 0d 0a 09 69 66 | 20 28 4e 6f 64 65 20 3d |;.....if| (Node =|
|00001b40| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 72 65 74 75 72 |= None).|...retur|
|00001b50| 6e 3b 0d 0a 0d 0a 09 43 | 75 72 43 6f 72 65 20 3d |n;.....C|urCore =|
|00001b60| 20 4e 6f 64 65 3b 0d 0a | 09 64 6f 0d 0a 09 7b 0d | Node;..|.do...{.|
|00001b70| 0a 09 09 69 66 20 28 20 | 43 75 72 43 6f 72 65 2e |...if ( |CurCore.|
|00001b80| 48 61 73 48 65 61 6c 74 | 68 42 61 72 28 29 20 29 |HasHealt|hBar() )|
|00001b90| 0d 0a 09 09 09 44 72 61 | 77 48 65 61 6c 74 68 42 |.....Dra|wHealthB|
|00001ba0| 61 72 28 43 2c 20 43 75 | 72 43 6f 72 65 2c 20 43 |ar(C, Cu|rCore, C|
|00001bb0| 75 72 43 6f 72 65 2e 48 | 65 61 6c 74 68 2c 20 43 |urCore.H|ealth, C|
|00001bc0| 75 72 43 6f 72 65 2e 44 | 61 6d 61 67 65 43 61 70 |urCore.D|amageCap|
|00001bd0| 61 63 69 74 79 2c 20 48 | 65 61 6c 74 68 42 61 72 |acity, H|ealthBar|
|00001be0| 50 6f 73 69 74 69 6f 6e | 29 3b 0d 0a 0d 0a 09 09 |Position|);......|
|00001bf0| 43 75 72 43 6f 72 65 20 | 3d 20 43 75 72 43 6f 72 |CurCore |= CurCor|
|00001c00| 65 2e 4e 65 78 74 43 6f | 72 65 3b 0d 0a 09 7d 20 |e.NextCo|re;...} |
|00001c10| 75 6e 74 69 6c 20 28 20 | 43 75 72 43 6f 72 65 20 |until ( |CurCore |
|00001c20| 3d 3d 20 4e 6f 6e 65 20 | 7c 7c 20 43 75 72 43 6f |== None ||| CurCo|
|00001c30| 72 65 20 3d 3d 20 4e 6f | 64 65 20 29 3b 0d 0a 0d |re == No|de );...|
|00001c40| 0a 09 43 6f 72 65 49 63 | 6f 6e 53 69 7a 65 20 3d |..CoreIc|onSize =|
|00001c50| 20 49 63 6f 6e 53 63 61 | 6c 65 20 2a 20 31 36 20 | IconSca|le * 16 |
|00001c60| 2a 20 43 2e 43 6c 69 70 | 58 20 2a 20 48 55 44 53 |* C.Clip|X * HUDS|
|00001c70| 63 61 6c 65 2f 31 36 30 | 30 3b 0d 0a 09 50 61 77 |cale/160|0;...Paw|
|00001c80| 6e 49 63 6f 6e 53 69 7a | 65 20 3d 20 43 6f 72 65 |nIconSiz|e = Core|
|00001c90| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 30 2e 35 3b 0d |IconSize| * 0.5;.|
|00001ca0| 0a 09 50 6c 61 79 65 72 | 49 63 6f 6e 53 69 7a 65 |..Player|IconSize|
|00001cb0| 20 3d 20 43 6f 72 65 49 | 63 6f 6e 53 69 7a 65 20 | = CoreI|conSize |
|00001cc0| 2a 20 31 2e 35 3b 0d 0a | 20 20 20 20 4d 61 70 53 |* 1.5;..| MapS|
|00001cd0| 63 61 6c 65 20 3d 20 4d | 61 70 52 61 64 61 72 57 |cale = M|apRadarW|
|00001ce0| 69 64 74 68 2f 52 61 64 | 61 72 52 61 6e 67 65 3b |idth/Rad|arRange;|
|00001cf0| 0d 0a 20 20 20 20 43 2e | 46 6f 6e 74 20 3d 20 47 |.. C.|Font = G|
|00001d00| 65 74 43 6f 6e 73 6f 6c | 65 46 6f 6e 74 28 43 29 |etConsol|eFont(C)|
|00001d10| 3b 0d 0a 0d 0a 09 4e 6f | 64 65 2e 55 70 64 61 74 |;.....No|de.Updat|
|00001d20| 65 48 55 44 4c 6f 63 61 | 74 69 6f 6e 28 20 43 65 |eHUDLoca|tion( Ce|
|00001d30| 6e 74 65 72 50 6f 73 58 | 2c 20 43 65 6e 74 65 72 |nterPosX|, Center|
|00001d40| 50 6f 73 59 2c 20 52 61 | 64 61 72 57 69 64 74 68 |PosY, Ra|darWidth|
|00001d50| 2c 20 52 61 64 61 72 52 | 61 6e 67 65 2c 20 4d 61 |, RadarR|ange, Ma|
|00001d60| 70 43 65 6e 74 65 72 20 | 29 3b 0d 0a 09 66 6f 72 |pCenter |);...for|
|00001d70| 20 28 20 69 20 3d 20 30 | 3b 20 69 20 3c 20 50 6f | ( i = 0|; i < Po|
|00001d80| 77 65 72 4c 69 6e 6b 73 | 2e 4c 65 6e 67 74 68 3b |werLinks|.Length;|
|00001d90| 20 69 2b 2b 20 29 0d 0a | 09 09 50 6f 77 65 72 4c | i++ )..|..PowerL|
|00001da0| 69 6e 6b 73 5b 69 5d 2e | 52 65 6e 64 65 72 28 43 |inks[i].|Render(C|
|00001db0| 2c 20 43 6f 6c 6f 72 50 | 65 72 63 65 6e 74 2c 20 |, ColorP|ercent, |
|00001dc0| 62 53 68 6f 77 44 69 73 | 61 62 6c 65 64 4e 6f 64 |bShowDis|abledNod|
|00001dd0| 65 73 29 3b 0d 0a 0d 0a | 09 43 75 72 43 6f 72 65 |es);....|.CurCore|
|00001de0| 20 3d 20 4e 6f 64 65 3b | 0d 0a 09 64 6f 0d 0a 09 | = Node;|...do...|
|00001df0| 7b 0d 0a 09 09 69 66 20 | 28 21 62 53 68 6f 77 44 |{....if |(!bShowD|
|00001e00| 69 73 61 62 6c 65 64 4e | 6f 64 65 73 20 26 26 20 |isabledN|odes && |
|00001e10| 28 43 75 72 43 6f 72 65 | 2e 43 6f 72 65 53 74 61 |(CurCore|.CoreSta|
|00001e20| 67 65 20 3d 3d 20 32 35 | 35 20 7c 7c 20 43 75 72 |ge == 25|5 || Cur|
|00001e30| 43 6f 72 65 2e 50 6f 77 | 65 72 4c 69 6e 6b 73 2e |Core.Pow|erLinks.|
|00001e40| 4c 65 6e 67 74 68 20 3d | 3d 20 30 29 29 09 2f 2f |Length =|= 0)).//|
|00001e50| 68 69 64 65 20 75 6e 75 | 73 65 64 20 70 6f 77 65 |hide unu|sed powe|
|00001e60| 72 6e 6f 64 65 73 0d 0a | 09 09 7b 0d 0a 09 09 09 |rnodes..|..{.....|
|00001e70| 69 66 20 28 50 6c 61 79 | 65 72 4f 77 6e 65 72 3d |if (Play|erOwner=|
|00001e80| 3d 6e 6f 6e 65 20 7c 7c | 20 21 50 6c 61 79 65 72 |=none ||| !Player|
|00001e90| 4f 77 6e 65 72 2e 62 44 | 65 6d 6f 4f 77 6e 65 72 |Owner.bD|emoOwner|
|00001ea0| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 43 75 72 |).....{.|.....Cur|
|00001eb0| 43 6f 72 65 20 3d 20 43 | 75 72 43 6f 72 65 2e 4e |Core = C|urCore.N|
|00001ec0| 65 78 74 43 6f 72 65 3b | 0d 0a 09 09 09 09 63 6f |extCore;|......co|
|00001ed0| 6e 74 69 6e 75 65 3b 0d | 0a 09 09 09 7d 0d 0a 09 |ntinue;.|....}...|
|00001ee0| 09 7d 0d 0a 0d 0a 09 09 | 43 2e 44 72 61 77 43 6f |.}......|C.DrawCo|
|00001ef0| 6c 6f 72 20 3d 20 4c 69 | 6e 6b 43 6f 6c 6f 72 5b |lor = Li|nkColor[|
|00001f00| 43 75 72 43 6f 72 65 2e | 44 65 66 65 6e 64 65 72 |CurCore.|Defender|
|00001f10| 54 65 61 6d 49 6e 64 65 | 78 5d 3b 0d 0a 0d 0a 09 |TeamInde|x];.....|
|00001f20| 09 2f 2f 20 44 72 61 77 | 20 61 70 70 72 6f 70 72 |.// Draw| appropr|
|00001f30| 69 61 74 65 20 69 63 6f | 6e 20 74 6f 20 72 65 70 |iate ico|n to rep|
|00001f40| 72 65 73 65 6e 74 20 74 | 68 65 20 63 75 72 72 65 |resent t|he curre|
|00001f50| 6e 74 20 73 74 61 74 65 | 20 6f 66 20 74 68 69 73 |nt state| of this|
|00001f60| 20 6e 6f 64 65 0d 0a 09 | 20 20 20 20 69 66 20 28 | node...| if (|
|00001f70| 43 75 72 43 6f 72 65 2e | 62 55 6e 64 65 72 41 74 |CurCore.|bUnderAt|
|00001f80| 74 61 63 6b 20 7c 7c 20 | 28 43 75 72 43 6f 72 65 |tack || |(CurCore|
|00001f90| 2e 43 6f 72 65 53 74 61 | 67 65 20 3d 3d 20 30 20 |.CoreSta|ge == 0 |
|00001fa0| 26 26 20 43 75 72 43 6f | 72 65 2e 62 53 65 76 65 |&& CurCo|re.bSeve|
|00001fb0| 72 65 64 29 29 0d 0a 09 | 20 20 20 20 09 44 72 61 |red))...| .Dra|
|00001fc0| 77 41 74 74 61 63 6b 49 | 63 6f 6e 28 20 43 2c 20 |wAttackI|con( C, |
|00001fd0| 43 75 72 43 6f 72 65 2c | 20 43 75 72 43 6f 72 65 |CurCore,| CurCore|
|00001fe0| 2e 48 55 44 4c 6f 63 61 | 74 69 6f 6e 2c 20 49 63 |.HUDLoca|tion, Ic|
|00001ff0| 6f 6e 53 63 61 6c 65 2c | 20 48 55 44 53 63 61 6c |onScale,| HUDScal|
|00002000| 65 2c 20 43 6f 6c 6f 72 | 50 65 72 63 65 6e 74 20 |e, Color|Percent |
|00002010| 29 3b 0d 0a 0d 0a 09 09 | 69 66 20 28 43 75 72 43 |);......|if (CurC|
|00002020| 6f 72 65 2e 62 46 69 6e | 61 6c 43 6f 72 65 29 0d |ore.bFin|alCore).|
|00002030| 0a 09 09 09 44 72 61 77 | 43 6f 72 65 49 63 6f 6e |....Draw|CoreIcon|
|00002040| 28 20 43 2c 20 43 75 72 | 43 6f 72 65 2e 48 55 44 |( C, Cur|Core.HUD|
|00002050| 4c 6f 63 61 74 69 6f 6e | 2c 20 50 6f 77 65 72 43 |Location|, PowerC|
|00002060| 6f 72 65 41 74 74 61 63 | 6b 61 62 6c 65 28 43 75 |oreAttac|kable(Cu|
|00002070| 72 43 6f 72 65 29 2c 20 | 49 63 6f 6e 53 63 61 6c |rCore), |IconScal|
|00002080| 65 2c 20 48 55 44 53 63 | 61 6c 65 2c 20 43 6f 6c |e, HUDSc|ale, Col|
|00002090| 6f 72 50 65 72 63 65 6e | 74 20 29 3b 0d 0a 09 09 |orPercen|t );....|
|000020a0| 65 6c 73 65 0d 0a 09 09 | 7b 0d 0a 09 09 09 44 72 |else....|{.....Dr|
|000020b0| 61 77 4e 6f 64 65 49 63 | 6f 6e 28 20 43 2c 20 43 |awNodeIc|on( C, C|
|000020c0| 75 72 43 6f 72 65 2e 48 | 55 44 4c 6f 63 61 74 69 |urCore.H|UDLocati|
|000020d0| 6f 6e 2c 20 50 6f 77 65 | 72 43 6f 72 65 41 74 74 |on, Powe|rCoreAtt|
|000020e0| 61 63 6b 61 62 6c 65 28 | 43 75 72 43 6f 72 65 29 |ackable(|CurCore)|
|000020f0| 2c 20 43 75 72 43 6f 72 | 65 2e 43 6f 72 65 53 74 |, CurCor|e.CoreSt|
|00002100| 61 67 65 2c 20 49 63 6f | 6e 53 63 61 6c 65 2c 20 |age, Ico|nScale, |
|00002110| 48 55 44 53 63 61 6c 65 | 2c 20 43 6f 6c 6f 72 50 |HUDScale|, ColorP|
|00002120| 65 72 63 65 6e 74 20 29 | 3b 0d 0a 09 09 09 44 72 |ercent )|;.....Dr|
|00002130| 61 77 4e 6f 64 65 4c 61 | 62 65 6c 28 43 2c 20 43 |awNodeLa|bel(C, C|
|00002140| 75 72 43 6f 72 65 2e 48 | 55 44 4c 6f 63 61 74 69 |urCore.H|UDLocati|
|00002150| 6f 6e 2c 20 49 63 6f 6e | 53 63 61 6c 65 2c 20 48 |on, Icon|Scale, H|
|00002160| 55 44 53 63 61 6c 65 2c | 20 43 2e 44 72 61 77 43 |UDScale,| C.DrawC|
|00002170| 6f 6c 6f 72 2c 20 43 75 | 72 43 6f 72 65 2e 4e 6f |olor, Cu|rCore.No|
|00002180| 64 65 4e 75 6d 29 3b 0d | 0a 09 09 7d 0d 0a 0d 0a |deNum);.|...}....|
|00002190| 09 09 43 75 72 43 6f 72 | 65 20 3d 20 43 75 72 43 |..CurCor|e = CurC|
|000021a0| 6f 72 65 2e 4e 65 78 74 | 43 6f 72 65 3b 0d 0a 0d |ore.Next|Core;...|
|000021b0| 0a 09 7d 20 75 6e 74 69 | 6c 20 28 20 43 75 72 43 |..} unti|l ( CurC|
|000021c0| 6f 72 65 20 3d 3d 20 4e | 6f 6e 65 20 7c 7c 20 43 |ore == N|one || C|
|000021d0| 75 72 43 6f 72 65 20 3d | 3d 20 4e 6f 64 65 20 29 |urCore =|= Node )|
|000021e0| 3b 0d 0a 0d 0a 20 20 20 | 20 2f 2f 20 44 72 61 77 |;.... | // Draw|
|000021f0| 20 50 6c 61 79 65 72 49 | 63 6f 6e 0d 0a 20 20 20 | PlayerI|con.. |
|00002200| 20 69 66 20 28 50 61 77 | 6e 4f 77 6e 65 72 20 21 | if (Paw|nOwner !|
|00002210| 3d 20 4e 6f 6e 65 29 0d | 0a 20 20 20 20 09 41 20 |= None).|. .A |
|00002220| 3d 20 50 61 77 6e 4f 77 | 6e 65 72 3b 0d 0a 20 20 |= PawnOw|ner;.. |
|00002230| 20 20 65 6c 73 65 20 69 | 66 20 28 50 6c 61 79 65 | else i|f (Playe|
|00002240| 72 4f 77 6e 65 72 2e 49 | 73 49 6e 53 74 61 74 65 |rOwner.I|sInState|
|00002250| 28 27 53 70 65 63 74 61 | 74 69 6e 67 27 29 29 0d |('Specta|ting')).|
|00002260| 0a 20 20 20 20 20 20 20 | 20 41 20 3d 20 50 6c 61 |. | A = Pla|
|00002270| 79 65 72 4f 77 6e 65 72 | 3b 0d 0a 20 20 20 20 65 |yerOwner|;.. e|
|00002280| 6c 73 65 20 69 66 20 28 | 50 6c 61 79 65 72 4f 77 |lse if (|PlayerOw|
|00002290| 6e 65 72 2e 50 61 77 6e | 20 21 3d 20 4e 6f 6e 65 |ner.Pawn| != None|
|000022a0| 29 0d 0a 20 20 20 20 09 | 41 20 3d 20 50 6c 61 79 |).. .|A = Play|
|000022b0| 65 72 4f 77 6e 65 72 2e | 50 61 77 6e 3b 0d 0a 0d |erOwner.|Pawn;...|
|000022c0| 0a 20 20 20 20 69 66 20 | 28 41 20 21 3d 20 4e 6f |. if |(A != No|
|000022d0| 6e 65 29 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |ne).. | {.. |
|000022e0| 09 50 6c 61 79 65 72 49 | 63 6f 6e 20 3d 20 46 69 |.PlayerI|con = Fi|
|000022f0| 6e 61 6c 42 6c 65 6e 64 | 27 43 75 72 72 65 6e 74 |nalBlend|'Current|
|00002300| 50 6c 61 79 65 72 49 63 | 6f 6e 46 69 6e 61 6c 27 |PlayerIc|onFinal'|
|00002310| 3b 0d 0a 20 20 20 20 09 | 54 65 78 52 6f 74 61 74 |;.. .|TexRotat|
|00002320| 6f 72 28 50 6c 61 79 65 | 72 49 63 6f 6e 2e 4d 61 |or(Playe|rIcon.Ma|
|00002330| 74 65 72 69 61 6c 29 2e | 52 6f 74 61 74 69 6f 6e |terial).|Rotation|
|00002340| 2e 59 61 77 20 3d 20 2d | 41 2e 52 6f 74 61 74 69 |.Yaw = -|A.Rotati|
|00002350| 6f 6e 2e 59 61 77 20 2d | 20 31 36 33 38 34 3b 0d |on.Yaw -| 16384;.|
|00002360| 0a 20 20 20 20 20 20 20 | 20 48 55 44 4c 6f 63 61 |. | HUDLoca|
|00002370| 74 69 6f 6e 20 3d 20 41 | 2e 4c 6f 63 61 74 69 6f |tion = A|.Locatio|
|00002380| 6e 20 2d 20 4d 61 70 43 | 65 6e 74 65 72 3b 0d 0a |n - MapC|enter;..|
|00002390| 20 20 20 20 20 20 20 20 | 48 55 44 4c 6f 63 61 74 | |HUDLocat|
|000023a0| 69 6f 6e 2e 5a 20 3d 20 | 30 3b 0d 0a 20 20 20 20 |ion.Z = |0;.. |
|000023b0| 09 69 66 20 28 48 55 44 | 4c 6f 63 61 74 69 6f 6e |.if (HUD|Location|
|000023c0| 2e 58 20 3c 20 28 52 61 | 64 61 72 52 61 6e 67 65 |.X < (Ra|darRange|
|000023d0| 20 2a 20 30 2e 39 35 29 | 20 26 26 20 48 55 44 4c | * 0.95)| && HUDL|
|000023e0| 6f 63 61 74 69 6f 6e 2e | 59 20 3c 20 28 52 61 64 |ocation.|Y < (Rad|
|000023f0| 61 72 52 61 6e 67 65 20 | 2a 20 30 2e 39 35 29 29 |arRange |* 0.95))|
|00002400| 0d 0a 20 20 20 20 09 7b | 0d 0a 20 20 20 20 20 20 |.. .{|.. |
|00002410| 20 20 09 43 2e 53 65 74 | 50 6f 73 28 20 43 65 6e | .C.Set|Pos( Cen|
|00002420| 74 65 72 50 6f 73 58 20 | 2b 20 48 55 44 4c 6f 63 |terPosX |+ HUDLoc|
|00002430| 61 74 69 6f 6e 2e 58 20 | 2a 20 4d 61 70 53 63 61 |ation.X |* MapSca|
|00002440| 6c 65 20 2d 20 50 6c 61 | 79 65 72 49 63 6f 6e 53 |le - Pla|yerIconS|
|00002450| 69 7a 65 20 2a 20 30 2e | 35 2c 0d 0a 20 20 20 20 |ize * 0.|5,.. |
|00002460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002470| 20 20 20 20 20 20 43 65 | 6e 74 65 72 50 6f 73 59 | Ce|nterPosY|
|00002480| 20 2b 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 2e 59 | + HUDLo|cation.Y|
|00002490| 20 2a 20 4d 61 70 53 63 | 61 6c 65 20 2d 20 50 6c | * MapSc|ale - Pl|
|000024a0| 61 79 65 72 49 63 6f 6e | 53 69 7a 65 20 2a 20 30 |ayerIcon|Size * 0|
|000024b0| 2e 35 20 29 3b 0d 0a 0d | 0a 20 20 20 20 20 20 20 |.5 );...|. |
|000024c0| 20 20 20 20 20 43 2e 44 | 72 61 77 43 6f 6c 6f 72 | C.D|rawColor|
|000024d0| 20 3d 20 43 2e 4d 61 6b | 65 43 6f 6c 6f 72 28 34 | = C.Mak|eColor(4|
|000024e0| 30 2c 32 35 35 2c 34 30 | 29 3b 0d 0a 20 20 20 20 |0,255,40|);.. |
|000024f0| 20 20 20 20 20 20 20 20 | 43 2e 44 72 61 77 54 69 | |C.DrawTi|
|00002500| 6c 65 28 50 6c 61 79 65 | 72 49 63 6f 6e 2c 20 50 |le(Playe|rIcon, P|
|00002510| 6c 61 79 65 72 49 63 6f | 6e 53 69 7a 65 2c 20 50 |layerIco|nSize, P|
|00002520| 6c 61 79 65 72 49 63 6f | 6e 53 69 7a 65 2c 20 30 |layerIco|nSize, 0|
|00002530| 2c 20 30 2c 20 36 34 2c | 20 36 34 29 3b 0d 0a 20 |, 0, 64,| 64);.. |
|00002540| 20 20 20 20 20 20 20 7d | 0d 0a 20 20 20 20 7d 0d | }|.. }.|
|00002550| 0a 0d 0a 2f 2f 20 20 20 | 20 2f 2f 20 56 45 52 59 |...// | // VERY|
|00002560| 20 53 4c 4f 57 20 44 45 | 42 55 47 47 49 4e 47 20 | SLOW DE|BUGGING |
|00002570| 43 4f 44 45 20 66 6f 72 | 20 73 68 6f 77 69 6e 67 |CODE for| showing|
|00002580| 20 61 6c 6c 20 74 68 65 | 20 64 79 6e 61 6d 69 63 | all the| dynamic|
|00002590| 20 61 63 74 6f 72 73 20 | 74 68 61 74 20 65 78 69 | actors |that exi|
|000025a0| 73 74 20 69 6e 20 74 68 | 65 20 6c 65 76 65 6c 20 |st in th|e level |
|000025b0| 69 6e 20 72 65 61 6c 2d | 74 69 6d 65 0d 0a 2f 2f |in real-|time..//|
|000025c0| 20 20 20 20 46 6f 72 45 | 61 63 68 20 44 79 6e 61 | ForE|ach Dyna|
|000025d0| 6d 69 63 41 63 74 6f 72 | 73 28 63 6c 61 73 73 27 |micActor|s(class'|
|000025e0| 41 63 74 6f 72 27 2c 20 | 41 29 0d 0a 2f 2f 20 20 |Actor', |A)..// |
|000025f0| 20 20 7b 0d 0a 2f 2f 20 | 20 20 20 20 20 20 20 69 | {..// | i|
|00002600| 66 20 28 41 2e 49 73 41 | 28 27 50 72 6f 6a 65 63 |f (A.IsA|('Projec|
|00002610| 74 69 6c 65 27 29 29 20 | 2f 2f 28 41 2e 49 73 41 |tile')) |//(A.IsA|
|00002620| 28 27 50 72 6f 6a 65 63 | 74 6f 72 27 29 20 7c 7c |('Projec|tor') |||
|00002630| 20 41 2e 49 73 41 28 27 | 45 6d 69 74 74 65 72 27 | A.IsA('|Emitter'|
|00002640| 29 20 7c 7c 20 41 2e 49 | 73 41 28 27 78 45 6d 69 |) || A.I|sA('xEmi|
|00002650| 74 74 65 72 27 29 29 0d | 0a 2f 2f 20 20 20 20 20 |tter')).|.// |
|00002660| 20 20 20 7b 0d 0a 2f 2f | 20 20 20 20 20 20 20 20 | {..//| |
|00002670| 20 20 20 20 48 55 44 4c | 6f 63 61 74 69 6f 6e 20 | HUDL|ocation |
|00002680| 3d 20 41 2e 4c 6f 63 61 | 74 69 6f 6e 20 2d 20 4d |= A.Loca|tion - M|
|00002690| 61 70 43 65 6e 74 65 72 | 3b 0d 0a 2f 2f 20 20 20 |apCenter|;..// |
|000026a0| 20 20 20 20 20 20 20 20 | 20 48 55 44 4c 6f 63 61 | | HUDLoca|
|000026b0| 74 69 6f 6e 2e 5a 20 3d | 20 30 3b 0d 0a 2f 2f 20 |tion.Z =| 0;..// |
|000026c0| 20 20 20 20 20 20 20 09 | 43 2e 53 65 74 50 6f 73 | .|C.SetPos|
|000026d0| 28 43 65 6e 74 65 72 50 | 6f 73 58 20 2b 20 48 55 |(CenterP|osX + HU|
|000026e0| 44 4c 6f 63 61 74 69 6f | 6e 2e 58 20 2a 20 4d 61 |DLocatio|n.X * Ma|
|000026f0| 70 53 63 61 6c 65 20 2d | 20 50 6c 61 79 65 72 49 |pScale -| PlayerI|
|00002700| 63 6f 6e 53 69 7a 65 20 | 2a 20 30 2e 35 20 2a 20 |conSize |* 0.5 * |
|00002710| 30 2e 32 35 2c 20 43 65 | 6e 74 65 72 50 6f 73 59 |0.25, Ce|nterPosY|
|00002720| 20 2b 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 2e 59 | + HUDLo|cation.Y|
|00002730| 20 2a 20 4d 61 70 53 63 | 61 6c 65 20 2d 20 50 6c | * MapSc|ale - Pl|
|00002740| 61 79 65 72 49 63 6f 6e | 53 69 7a 65 20 2a 20 30 |ayerIcon|Size * 0|
|00002750| 2e 35 20 2a 20 30 2e 32 | 35 29 3b 0d 0a 2f 2f 20 |.5 * 0.2|5);..// |
|00002760| 20 20 20 20 20 20 20 20 | 20 20 20 43 2e 44 72 61 | | C.Dra|
|00002770| 77 43 6f 6c 6f 72 20 3d | 20 43 2e 4d 61 6b 65 43 |wColor =| C.MakeC|
|00002780| 6f 6c 6f 72 28 32 35 35 | 2c 32 35 35 2c 30 29 3b |olor(255|,255,0);|
|00002790| 0d 0a 2f 2f 20 20 20 20 | 20 20 20 20 20 20 20 20 |..// | |
|000027a0| 43 2e 44 72 61 77 54 69 | 6c 65 28 4d 61 74 65 72 |C.DrawTi|le(Mater|
|000027b0| 69 61 6c 27 4e 65 77 48 | 55 44 49 63 6f 6e 73 27 |ial'NewH|UDIcons'|
|000027c0| 2c 20 50 6c 61 79 65 72 | 49 63 6f 6e 53 69 7a 65 |, Player|IconSize|
|000027d0| 20 2a 20 30 2e 32 35 2c | 20 50 6c 61 79 65 72 49 | * 0.25,| PlayerI|
|000027e0| 63 6f 6e 53 69 7a 65 20 | 2a 20 30 2e 32 35 2c 20 |conSize |* 0.25, |
|000027f0| 30 2c 20 30 2c 20 33 32 | 2c 20 33 32 29 3b 0d 0a |0, 0, 32|, 32);..|
|00002800| 2f 2f 20 20 20 20 20 20 | 20 20 7d 0d 0a 2f 2f 20 |// | }..// |
|00002810| 20 20 20 20 20 20 20 69 | 66 20 28 41 2e 49 73 41 | i|f (A.IsA|
|00002820| 28 27 50 61 77 6e 27 29 | 29 0d 0a 2f 2f 20 20 20 |('Pawn')|)..// |
|00002830| 20 20 20 20 20 7b 0d 0a | 2f 2f 20 20 20 20 20 20 | {..|// |
|00002840| 20 20 20 20 20 20 69 66 | 20 28 50 61 77 6e 28 41 | if| (Pawn(A|
|00002850| 29 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |).Player|Replicat|
|00002860| 69 6f 6e 49 6e 66 6f 20 | 21 3d 20 4e 6f 6e 65 20 |ionInfo |!= None |
|00002870| 26 26 20 50 61 77 6e 28 | 41 29 2e 50 6c 61 79 65 |&& Pawn(|A).Playe|
|00002880| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00002890| 2e 54 65 61 6d 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |.Team !=| None)..|
|000028a0| 2f 2f 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 0d |// | {.|
|000028b0| 0a 2f 2f 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.// | |
|000028c0| 20 20 20 69 66 20 28 50 | 61 77 6e 28 41 29 2e 50 | if (P|awn(A).P|
|000028d0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000028e0| 49 6e 66 6f 2e 54 65 61 | 6d 2e 54 65 61 6d 49 6e |Info.Tea|m.TeamIn|
|000028f0| 64 65 78 20 3d 3d 20 30 | 29 0d 0a 2f 2f 20 20 20 |dex == 0|)..// |
|00002900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002910| 20 43 2e 44 72 61 77 43 | 6f 6c 6f 72 20 3d 20 43 | C.DrawC|olor = C|
|00002920| 2e 4d 61 6b 65 43 6f 6c | 6f 72 28 32 35 35 2c 30 |.MakeCol|or(255,0|
|00002930| 2c 30 29 3b 0d 0a 2f 2f | 20 20 20 20 20 20 20 20 |,0);..//| |
|00002940| 20 20 20 20 20 20 20 20 | 65 6c 73 65 20 69 66 20 | |else if |
|00002950| 28 50 61 77 6e 28 41 29 | 2e 50 6c 61 79 65 72 52 |(Pawn(A)|.PlayerR|
|00002960| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00002970| 65 61 6d 2e 54 65 61 6d | 49 6e 64 65 78 20 3d 3d |eam.Team|Index ==|
|00002980| 20 31 29 0d 0a 2f 2f 20 | 20 20 20 20 20 20 20 20 | 1)..// | |
|00002990| 20 20 20 20 20 20 20 20 | 20 20 20 43 2e 44 72 61 | | C.Dra|
|000029a0| 77 43 6f 6c 6f 72 20 3d | 20 43 2e 4d 61 6b 65 43 |wColor =| C.MakeC|
|000029b0| 6f 6c 6f 72 28 30 2c 30 | 2c 32 35 35 29 3b 0d 0a |olor(0,0|,255);..|
|000029c0| 2f 2f 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |// | |
|000029d0| 20 20 65 6c 73 65 0d 0a | 2f 2f 20 20 20 20 20 20 | else..|// |
|000029e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 43 2e | | C.|
|000029f0| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 43 2e 4d 61 |DrawColo|r = C.Ma|
|00002a00| 6b 65 43 6f 6c 6f 72 28 | 32 35 35 2c 30 2c 32 35 |keColor(|255,0,25|
|00002a10| 35 29 3b 0d 0a 2f 2f 20 | 20 20 20 20 20 20 20 20 |5);..// | |
|00002a20| 20 20 20 7d 0d 0a 2f 2f | 20 20 20 20 20 20 20 20 | }..//| |
|00002a30| 20 20 20 20 65 6c 73 65 | 0d 0a 2f 2f 20 20 20 20 | else|..// |
|00002a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 43 2e 44 72 | | C.Dr|
|00002a50| 61 77 43 6f 6c 6f 72 20 | 3d 20 43 2e 4d 61 6b 65 |awColor |= C.Make|
|00002a60| 43 6f 6c 6f 72 28 32 35 | 35 2c 32 35 35 2c 32 35 |Color(25|5,255,25|
|00002a70| 35 29 3b 0d 0a 2f 2f 0d | 0a 2f 2f 20 20 20 20 20 |5);..//.|.// |
|00002a80| 20 20 20 20 20 20 20 48 | 55 44 4c 6f 63 61 74 69 | H|UDLocati|
|00002a90| 6f 6e 20 3d 20 41 2e 4c | 6f 63 61 74 69 6f 6e 20 |on = A.L|ocation |
|00002aa0| 2d 20 4d 61 70 43 65 6e | 74 65 72 3b 0d 0a 2f 2f |- MapCen|ter;..//|
|00002ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 48 55 44 4c | | HUDL|
|00002ac0| 6f 63 61 74 69 6f 6e 2e | 5a 20 3d 20 30 3b 0d 0a |ocation.|Z = 0;..|
|00002ad0| 2f 2f 0d 0a 2f 2f 20 20 | 20 20 20 20 20 20 20 20 |//..// | |
|00002ae0| 20 20 69 66 20 28 41 2e | 49 73 41 28 27 56 65 68 | if (A.|IsA('Veh|
|00002af0| 69 63 6c 65 27 29 29 0d | 0a 2f 2f 20 20 20 20 20 |icle')).|.// |
|00002b00| 20 20 20 20 20 20 20 7b | 0d 0a 2f 2f 20 20 20 20 | {|..// |
|00002b10| 20 20 20 20 20 20 20 20 | 09 43 2e 53 65 74 50 6f | |.C.SetPo|
|00002b20| 73 28 43 65 6e 74 65 72 | 50 6f 73 58 20 2b 20 48 |s(Center|PosX + H|
|00002b30| 55 44 4c 6f 63 61 74 69 | 6f 6e 2e 58 20 2a 20 4d |UDLocati|on.X * M|
|00002b40| 61 70 53 63 61 6c 65 20 | 2d 20 50 6c 61 79 65 72 |apScale |- Player|
|00002b50| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 30 2e 35 20 2a |IconSize| * 0.5 *|
|00002b60| 20 30 2e 35 2c 20 43 65 | 6e 74 65 72 50 6f 73 59 | 0.5, Ce|nterPosY|
|00002b70| 20 2b 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 2e 59 | + HUDLo|cation.Y|
|00002b80| 20 2a 20 4d 61 70 53 63 | 61 6c 65 20 2d 20 50 6c | * MapSc|ale - Pl|
|00002b90| 61 79 65 72 49 63 6f 6e | 53 69 7a 65 20 2a 20 30 |ayerIcon|Size * 0|
|00002ba0| 2e 35 20 2a 20 30 2e 35 | 29 3b 0d 0a 2f 2f 20 20 |.5 * 0.5|);..// |
|00002bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 43 2e | | C.|
|00002bc0| 44 72 61 77 54 69 6c 65 | 28 4d 61 74 65 72 69 61 |DrawTile|(Materia|
|00002bd0| 6c 27 4e 65 77 48 55 44 | 49 63 6f 6e 73 27 2c 20 |l'NewHUD|Icons', |
|00002be0| 50 6c 61 79 65 72 49 63 | 6f 6e 53 69 7a 65 20 2a |PlayerIc|onSize *|
|00002bf0| 20 30 2e 35 2c 20 50 6c | 61 79 65 72 49 63 6f 6e | 0.5, Pl|ayerIcon|
|00002c00| 53 69 7a 65 20 2a 20 30 | 2e 35 2c 20 30 2c 20 30 |Size * 0|.5, 0, 0|
|00002c10| 2c 20 33 32 2c 20 33 32 | 29 3b 0d 0a 2f 2f 20 20 |, 32, 32|);..// |
|00002c20| 20 20 20 20 20 20 20 20 | 20 20 7d 0d 0a 2f 2f 20 | | }..// |
|00002c30| 20 20 20 20 20 20 20 20 | 20 20 20 65 6c 73 65 0d | | else.|
|00002c40| 0a 2f 2f 20 20 20 20 20 | 20 20 20 20 20 20 20 7b |.// | {|
|00002c50| 0d 0a 2f 2f 20 20 20 20 | 20 20 20 20 20 20 20 20 |..// | |
|00002c60| 09 43 2e 53 65 74 50 6f | 73 28 43 65 6e 74 65 72 |.C.SetPo|s(Center|
|00002c70| 50 6f 73 58 20 2b 20 48 | 55 44 4c 6f 63 61 74 69 |PosX + H|UDLocati|
|00002c80| 6f 6e 2e 58 20 2a 20 4d | 61 70 53 63 61 6c 65 20 |on.X * M|apScale |
|00002c90| 2d 20 50 6c 61 79 65 72 | 49 63 6f 6e 53 69 7a 65 |- Player|IconSize|
|00002ca0| 20 2a 20 30 2e 35 20 2a | 20 30 2e 32 35 2c 20 43 | * 0.5 *| 0.25, C|
|00002cb0| 65 6e 74 65 72 50 6f 73 | 59 20 2b 20 48 55 44 4c |enterPos|Y + HUDL|
|00002cc0| 6f 63 61 74 69 6f 6e 2e | 59 20 2a 20 4d 61 70 53 |ocation.|Y * MapS|
|00002cd0| 63 61 6c 65 20 2d 20 50 | 6c 61 79 65 72 49 63 6f |cale - P|layerIco|
|00002ce0| 6e 53 69 7a 65 20 2a 20 | 30 2e 35 20 2a 20 30 2e |nSize * |0.5 * 0.|
|00002cf0| 32 35 29 3b 0d 0a 2f 2f | 20 20 20 20 20 20 20 20 |25);..//| |
|00002d00| 20 20 20 20 20 20 20 20 | 43 2e 44 72 61 77 54 69 | |C.DrawTi|
|00002d10| 6c 65 28 4d 61 74 65 72 | 69 61 6c 27 4e 65 77 48 |le(Mater|ial'NewH|
|00002d20| 55 44 49 63 6f 6e 73 27 | 2c 20 50 6c 61 79 65 72 |UDIcons'|, Player|
|00002d30| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 30 2e 32 35 2c |IconSize| * 0.25,|
|00002d40| 20 50 6c 61 79 65 72 49 | 63 6f 6e 53 69 7a 65 20 | PlayerI|conSize |
|00002d50| 2a 20 30 2e 32 35 2c 20 | 30 2c 20 30 2c 20 33 32 |* 0.25, |0, 0, 32|
|00002d60| 2c 20 33 32 29 3b 0d 0a | 2f 2f 20 20 20 20 20 20 |, 32);..|// |
|00002d70| 20 20 20 20 20 20 7d 0d | 0a 2f 2f 20 20 20 20 20 | }.|.// |
|00002d80| 20 20 20 7d 0d 0a 2f 2f | 20 20 20 20 7d 0d 0a 0d | }..//| }...|
|00002d90| 0a 20 20 20 20 2f 2f 20 | 44 72 61 77 20 42 6f 72 |. // |Draw Bor|
|00002da0| 64 65 72 0d 0a 20 20 20 | 20 43 2e 44 72 61 77 43 |der.. | C.DrawC|
|00002db0| 6f 6c 6f 72 20 3d 20 43 | 2e 4d 61 6b 65 43 6f 6c |olor = C|.MakeCol|
|00002dc0| 6f 72 28 32 30 30 2c 32 | 30 30 2c 32 30 30 29 3b |or(200,2|00,200);|
|00002dd0| 0d 0a 09 43 2e 53 65 74 | 50 6f 73 28 43 65 6e 74 |...C.Set|Pos(Cent|
|00002de0| 65 72 50 6f 73 58 20 2d | 20 52 61 64 61 72 57 69 |erPosX -| RadarWi|
|00002df0| 64 74 68 2c 20 43 65 6e | 74 65 72 50 6f 73 59 20 |dth, Cen|terPosY |
|00002e00| 2d 20 52 61 64 61 72 57 | 69 64 74 68 29 3b 0d 0a |- RadarW|idth);..|
|00002e10| 09 43 2e 44 72 61 77 54 | 69 6c 65 28 42 6f 72 64 |.C.DrawT|ile(Bord|
|00002e20| 65 72 4d 61 74 2c 0d 0a | 20 20 20 20 20 20 20 20 |erMat,..| |
|00002e30| 20 20 20 20 20 20 20 52 | 61 64 61 72 57 69 64 74 | R|adarWidt|
|00002e40| 68 20 2a 20 32 2e 30 2c | 0d 0a 20 20 20 20 20 20 |h * 2.0,|.. |
|00002e50| 20 20 20 20 20 20 20 20 | 20 52 61 64 61 72 57 69 | | RadarWi|
|00002e60| 64 74 68 20 2a 20 32 2e | 30 2c 0d 0a 20 20 20 20 |dth * 2.|0,.. |
|00002e70| 20 20 20 20 20 20 20 20 | 20 20 20 30 2c 0d 0a 20 | | 0,.. |
|00002e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 30 2c | | 0,|
|00002e90| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00002ea0| 20 32 35 36 2c 0d 0a 20 | 20 20 20 20 20 20 20 20 | 256,.. | |
|00002eb0| 20 20 20 20 20 20 32 35 | 36 29 3b 0d 0a 0d 0a 20 | 25|6);.... |
|00002ec0| 20 20 20 43 2e 43 6f 6c | 6f 72 4d 6f 64 75 6c 61 | C.Col|orModula|
|00002ed0| 74 65 20 3d 20 53 61 76 | 65 64 4d 6f 64 75 6c 61 |te = Sav|edModula|
|00002ee0| 74 69 6f 6e 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |tion;..}|....func|
|00002ef0| 74 69 6f 6e 20 62 6f 6f | 6c 20 50 6f 77 65 72 43 |tion boo|l PowerC|
|00002f00| 6f 72 65 41 74 74 61 63 | 6b 61 62 6c 65 28 4f 4e |oreAttac|kable(ON|
|00002f10| 53 50 6f 77 65 72 43 6f | 72 65 20 50 43 29 0d 0a |SPowerCo|re PC)..|
|00002f20| 7b 0d 0a 20 20 20 20 69 | 66 20 20 28 50 61 77 6e |{.. i|f (Pawn|
|00002f30| 4f 77 6e 65 72 50 52 49 | 20 21 3d 20 4e 6f 6e 65 |OwnerPRI| != None|
|00002f40| 20 26 26 20 50 61 77 6e | 4f 77 6e 65 72 50 52 49 | && Pawn|OwnerPRI|
|00002f50| 2e 54 65 61 6d 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |.Team !=| None)..|
|00002f60| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 69 | {.. | i|
|00002f70| 66 20 28 50 43 2e 44 65 | 66 65 6e 64 65 72 54 65 |f (PC.De|fenderTe|
|00002f80| 61 6d 49 6e 64 65 78 20 | 21 3d 20 50 61 77 6e 4f |amIndex |!= PawnO|
|00002f90| 77 6e 65 72 50 52 49 2e | 54 65 61 6d 2e 54 65 61 |wnerPRI.|Team.Tea|
|00002fa0| 6d 49 6e 64 65 78 29 0d | 0a 20 20 20 20 20 20 20 |mIndex).|. |
|00002fb0| 20 20 20 20 20 72 65 74 | 75 72 6e 20 28 50 43 2e | ret|urn (PC.|
|00002fc0| 50 6f 77 65 72 65 64 42 | 79 28 50 61 77 6e 4f 77 |PoweredB|y(PawnOw|
|00002fd0| 6e 65 72 50 52 49 2e 54 | 65 61 6d 2e 54 65 61 6d |nerPRI.T|eam.Team|
|00002fe0| 49 6e 64 65 78 29 29 3b | 0d 0a 20 20 20 20 20 20 |Index));|.. |
|00002ff0| 20 20 65 6c 73 65 0d 0a | 20 20 20 20 20 20 20 20 | else..| |
|00003000| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |{.. | i|
|00003010| 66 20 28 50 61 77 6e 4f | 77 6e 65 72 50 52 49 2e |f (PawnO|wnerPRI.|
|00003020| 54 65 61 6d 2e 54 65 61 | 6d 49 6e 64 65 78 20 3d |Team.Tea|mIndex =|
|00003030| 3d 20 30 29 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |= 0).. | |
|00003040| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 28 50 43 | re|turn (PC|
|00003050| 2e 50 6f 77 65 72 65 64 | 42 79 28 31 29 29 3b 0d |.Powered|By(1));.|
|00003060| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6c 73 |. | els|
|00003070| 65 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e.. | |
|00003080| 20 20 20 72 65 74 75 72 | 6e 20 28 50 43 2e 50 6f | retur|n (PC.Po|
|00003090| 77 65 72 65 64 42 79 28 | 30 29 29 3b 0d 0a 20 20 |weredBy(|0));.. |
|000030a0| 20 20 20 20 20 20 7d 0d | 0a 20 20 20 20 7d 0d 0a | }.|. }..|
|000030b0| 0d 0a 20 20 20 20 72 65 | 74 75 72 6e 20 46 61 6c |.. re|turn Fal|
|000030c0| 73 65 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |se;..}..|..simula|
|000030d0| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 53 68 6f |ted func|tion Sho|
|000030e0| 77 54 65 61 6d 53 63 6f | 72 65 50 61 73 73 41 28 |wTeamSco|rePassA(|
|000030f0| 43 61 6e 76 61 73 20 43 | 29 0d 0a 7b 0d 0a 09 6c |Canvas C|)..{...l|
|00003100| 6f 63 61 6c 20 69 6e 74 | 20 78 3b 0d 0a 0d 0a 09 |ocal int| x;.....|
|00003110| 53 75 70 65 72 2e 53 68 | 6f 77 54 65 61 6d 53 63 |Super.Sh|owTeamSc|
|00003120| 6f 72 65 50 61 73 73 41 | 28 43 29 3b 0d 0a 0d 0a |orePassA|(C);....|
|00003130| 09 69 66 20 28 62 53 68 | 6f 77 50 6f 69 6e 74 73 |.if (bSh|owPoints|
|00003140| 29 0d 0a 09 09 66 6f 72 | 20 28 78 20 3d 20 30 3b |)....for| (x = 0;|
|00003150| 20 78 20 3c 20 32 3b 20 | 78 2b 2b 29 0d 0a 09 09 | x < 2; |x++)....|
|00003160| 7b 0d 0a 09 09 09 44 72 | 61 77 53 70 72 69 74 65 |{.....Dr|awSprite|
|00003170| 57 69 64 67 65 74 20 28 | 43 2c 20 53 79 6d 62 6f |Widget (|C, Symbo|
|00003180| 6c 47 42 5b 78 5d 29 3b | 0d 0a 0d 0a 09 09 09 69 |lGB[x]);|.......i|
|00003190| 66 20 28 46 69 6e 61 6c | 43 6f 72 65 5b 78 5d 20 |f (Final|Core[x] |
|000031a0| 21 3d 20 4e 6f 6e 65 20 | 26 26 20 46 69 6e 61 6c |!= None |&& Final|
|000031b0| 43 6f 72 65 5b 78 5d 2e | 43 6f 72 65 53 74 61 67 |Core[x].|CoreStag|
|000031c0| 65 20 3d 3d 20 30 29 0d | 0a 09 09 09 7b 0d 0a 09 |e == 0).|....{...|
|000031d0| 09 09 09 44 72 61 77 53 | 70 72 69 74 65 57 69 64 |...DrawS|priteWid|
|000031e0| 67 65 74 20 28 43 2c 20 | 43 6f 72 65 57 69 64 67 |get (C, |CoreWidg|
|000031f0| 65 74 73 5b 78 5d 29 3b | 0d 0a 0d 0a 09 09 09 09 |ets[x]);|........|
|00003200| 69 66 20 28 46 69 6e 61 | 6c 43 6f 72 65 5b 78 5d |if (Fina|lCore[x]|
|00003210| 2e 62 55 6e 64 65 72 41 | 74 74 61 63 6b 29 0d 0a |.bUnderA|ttack)..|
|00003220| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 43 6f 72 65 |....{...|....Core|
|00003230| 48 65 61 6c 74 68 57 69 | 64 67 65 74 73 5b 78 5d |HealthWi|dgets[x]|
|00003240| 2e 54 69 6e 74 73 5b 54 | 65 61 6d 49 6e 64 65 78 |.Tints[T|eamIndex|
|00003250| 5d 2e 47 20 3d 20 32 35 | 35 20 2a 20 43 6f 6c 6f |].G = 25|5 * Colo|
|00003260| 72 50 65 72 63 65 6e 74 | 3b 0d 0a 09 09 09 09 09 |rPercent|;.......|
|00003270| 43 6f 72 65 48 65 61 6c | 74 68 57 69 64 67 65 74 |CoreHeal|thWidget|
|00003280| 73 5b 78 5d 2e 54 69 6e | 74 73 5b 54 65 61 6d 49 |s[x].Tin|ts[TeamI|
|00003290| 6e 64 65 78 5d 2e 42 20 | 3d 20 32 35 35 20 2a 20 |ndex].B |= 255 * |
|000032a0| 43 6f 6c 6f 72 50 65 72 | 63 65 6e 74 3b 0d 0a 09 |ColorPer|cent;...|
|000032b0| 09 09 09 7d 0d 0a 09 09 | 09 09 65 6c 73 65 0d 0a |...}....|..else..|
|000032c0| 09 09 09 09 09 43 6f 72 | 65 48 65 61 6c 74 68 57 |.....Cor|eHealthW|
|000032d0| 69 64 67 65 74 73 5b 78 | 5d 2e 54 69 6e 74 73 5b |idgets[x|].Tints[|
|000032e0| 54 65 61 6d 49 6e 64 65 | 78 5d 20 3d 20 57 68 69 |TeamInde|x] = Whi|
|000032f0| 74 65 43 6f 6c 6f 72 3b | 0d 0a 0d 0a 09 09 09 09 |teColor;|........|
|00003300| 43 6f 72 65 48 65 61 6c | 74 68 57 69 64 67 65 74 |CoreHeal|thWidget|
|00003310| 73 5b 78 5d 2e 56 61 6c | 75 65 20 3d 20 72 6f 75 |s[x].Val|ue = rou|
|00003320| 6e 64 28 28 66 6c 6f 61 | 74 28 46 69 6e 61 6c 43 |nd((floa|t(FinalC|
|00003330| 6f 72 65 5b 78 5d 2e 48 | 65 61 6c 74 68 29 20 2f |ore[x].H|ealth) /|
|00003340| 20 46 69 6e 61 6c 43 6f | 72 65 5b 78 5d 2e 44 61 | FinalCo|re[x].Da|
|00003350| 6d 61 67 65 43 61 70 61 | 63 69 74 79 29 20 2a 20 |mageCapa|city) * |
|00003360| 31 30 30 29 3b 0d 0a 09 | 09 09 09 44 72 61 77 4e |100);...|...DrawN|
|00003370| 75 6d 65 72 69 63 57 69 | 64 67 65 74 28 43 2c 20 |umericWi|dget(C, |
|00003380| 43 6f 72 65 48 65 61 6c | 74 68 57 69 64 67 65 74 |CoreHeal|thWidget|
|00003390| 73 5b 78 5d 2c 20 44 69 | 67 69 74 73 42 69 67 29 |s[x], Di|gitsBig)|
|000033a0| 3b 0d 0a 0d 0a 09 09 09 | 09 2f 2f 43 2e 44 72 61 |;.......|.//C.Dra|
|000033b0| 77 43 6f 6c 6f 72 20 3d | 20 48 75 64 43 6f 6c 6f |wColor =| HudColo|
|000033c0| 72 48 69 67 68 4c 69 67 | 68 74 3b 0d 0a 09 09 09 |rHighLig|ht;.....|
|000033d0| 09 2f 2f 44 72 61 77 32 | 44 4c 6f 63 61 74 69 6f |.//Draw2|DLocatio|
|000033e0| 6e 44 6f 74 28 43 2c 20 | 46 69 6e 61 6c 43 6f 72 |nDot(C, |FinalCor|
|000033f0| 65 5b 78 5d 2e 4c 6f 63 | 61 74 69 6f 6e 2c 30 2e |e[x].Loc|ation,0.|
|00003400| 35 20 2b 20 74 6d 70 50 | 6f 73 58 5b 78 5d 2a 48 |5 + tmpP|osX[x]*H|
|00003410| 55 44 53 63 61 6c 65 2c | 20 74 6d 70 50 6f 73 59 |UDScale,| tmpPosY|
|00003420| 2a 48 55 44 53 63 61 6c | 65 2c 20 74 6d 70 53 63 |*HUDScal|e, tmpSc|
|00003430| 61 6c 65 58 2a 48 55 44 | 53 63 61 6c 65 2c 20 74 |aleX*HUD|Scale, t|
|00003440| 6d 70 53 63 61 6c 65 59 | 2a 48 55 44 53 63 61 6c |mpScaleY|*HUDScal|
|00003450| 65 29 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 7d 0d 0a |e);.....|}....}..|
|00003460| 7d 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 66 |}....sim|ulated f|
|00003470| 75 6e 63 74 69 6f 6e 20 | 53 68 6f 77 54 65 61 6d |unction |ShowTeam|
|00003480| 53 63 6f 72 65 50 61 73 | 73 43 28 43 61 6e 76 61 |ScorePas|sC(Canva|
|00003490| 73 20 43 29 0d 0a 7b 0d | 0a 20 20 20 20 6c 6f 63 |s C)..{.|. loc|
|000034a0| 61 6c 20 66 6c 6f 61 74 | 20 52 61 64 61 72 57 69 |al float| RadarWi|
|000034b0| 64 74 68 2c 20 43 65 6e | 74 65 72 52 61 64 61 72 |dth, Cen|terRadar|
|000034c0| 50 6f 73 58 2c 20 43 65 | 6e 74 65 72 52 61 64 61 |PosX, Ce|nterRada|
|000034d0| 72 50 6f 73 59 3b 0d 0a | 0d 0a 20 20 20 20 69 66 |rPosY;..|.. if|
|000034e0| 20 28 4c 65 76 65 6c 2e | 62 53 68 6f 77 52 61 64 | (Level.|bShowRad|
|000034f0| 61 72 4d 61 70 20 26 26 | 20 21 62 4d 61 70 44 69 |arMap &&| !bMapDi|
|00003500| 73 61 62 6c 65 64 29 0d | 0a 20 20 20 20 7b 0d 0a |sabled).|. {..|
|00003510| 20 20 20 20 20 20 20 20 | 52 61 64 61 72 57 69 64 | |RadarWid|
|00003520| 74 68 20 3d 20 30 2e 35 | 20 2a 20 52 61 64 61 72 |th = 0.5| * Radar|
|00003530| 53 63 61 6c 65 20 2a 20 | 48 55 44 53 63 61 6c 65 |Scale * |HUDScale|
|00003540| 20 2a 20 43 2e 43 6c 69 | 70 58 3b 0d 0a 20 20 20 | * C.Cli|pX;.. |
|00003550| 20 20 20 20 20 43 65 6e | 74 65 72 52 61 64 61 72 | Cen|terRadar|
|00003560| 50 6f 73 58 20 3d 20 28 | 52 61 64 61 72 50 6f 73 |PosX = (|RadarPos|
|00003570| 58 20 2a 20 43 2e 43 6c | 69 70 58 29 20 2d 20 52 |X * C.Cl|ipX) - R|
|00003580| 61 64 61 72 57 69 64 74 | 68 3b 0d 0a 20 20 20 20 |adarWidt|h;.. |
|00003590| 20 20 20 20 43 65 6e 74 | 65 72 52 61 64 61 72 50 | Cent|erRadarP|
|000035a0| 6f 73 59 20 3d 20 28 52 | 61 64 61 72 50 6f 73 59 |osY = (R|adarPosY|
|000035b0| 20 2a 20 43 2e 43 6c 69 | 70 59 29 20 2b 20 52 61 | * C.Cli|pY) + Ra|
|000035c0| 64 61 72 57 69 64 74 68 | 3b 0d 0a 20 20 20 20 20 |darWidth|;.. |
|000035d0| 20 20 20 44 72 61 77 52 | 61 64 61 72 4d 61 70 28 | DrawR|adarMap(|
|000035e0| 43 2c 20 43 65 6e 74 65 | 72 52 61 64 61 72 50 6f |C, Cente|rRadarPo|
|000035f0| 73 58 2c 20 43 65 6e 74 | 65 72 52 61 64 61 72 50 |sX, Cent|erRadarP|
|00003600| 6f 73 59 2c 20 52 61 64 | 61 72 57 69 64 74 68 2c |osY, Rad|arWidth,|
|00003610| 20 66 61 6c 73 65 29 3b | 0d 0a 20 20 20 20 7d 0d | false);|.. }.|
|00003620| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00003630| 66 75 6e 63 74 69 6f 6e | 20 44 72 61 77 4e 6f 64 |function| DrawNod|
|00003640| 65 4c 61 62 65 6c 28 43 | 61 6e 76 61 73 20 43 2c |eLabel(C|anvas C,|
|00003650| 20 76 65 63 74 6f 72 20 | 48 55 44 4c 6f 63 61 74 | vector |HUDLocat|
|00003660| 69 6f 6e 2c 20 66 6c 6f | 61 74 20 49 63 6f 6e 53 |ion, flo|at IconS|
|00003670| 63 61 6c 69 6e 67 2c 20 | 66 6c 6f 61 74 20 48 55 |caling, |float HU|
|00003680| 44 53 63 61 6c 69 6e 67 | 2c 20 43 6f 6c 6f 72 20 |DScaling|, Color |
|00003690| 4c 61 62 65 6c 43 6f 6c | 6f 72 2c 20 69 6e 74 20 |LabelCol|or, int |
|000036a0| 4e 75 6d 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |Num)..{.|..local |
|000036b0| 66 6c 6f 61 74 20 4c 61 | 62 65 6c 49 63 6f 6e 53 |float La|belIconS|
|000036c0| 69 7a 65 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |ize;...l|ocal int|
|000036d0| 20 54 65 6e 73 50 6c 61 | 63 65 3b 0d 0a 0d 0a 09 | TensPla|ce;.....|
|000036e0| 69 66 20 28 20 43 20 3d | 3d 20 4e 6f 6e 65 20 7c |if ( C =|= None ||
|000036f0| 7c 20 4e 75 6d 20 3e 3d | 20 31 30 30 29 0d 0a 09 || Num >=| 100)...|
|00003700| 09 72 65 74 75 72 6e 3b | 0d 0a 0d 0a 09 4c 61 62 |.return;|.....Lab|
|00003710| 65 6c 49 63 6f 6e 53 69 | 7a 65 20 3d 20 49 63 6f |elIconSi|ze = Ico|
|00003720| 6e 53 63 61 6c 69 6e 67 | 20 2a 20 31 36 20 2a 20 |nScaling| * 16 * |
|00003730| 43 2e 43 6c 69 70 58 20 | 2a 20 48 55 44 53 63 61 |C.ClipX |* HUDSca|
|00003740| 6c 69 6e 67 2f 31 36 30 | 30 3b 0d 0a 20 20 20 20 |ling/160|0;.. |
|00003750| 43 2e 44 72 61 77 43 6f | 6c 6f 72 20 3d 20 57 68 |C.DrawCo|lor = Wh|
|00003760| 69 74 65 43 6f 6c 6f 72 | 3b 0d 0a 0d 0a 09 69 66 |iteColor|;.....if|
|00003770| 20 28 4e 75 6d 20 3e 20 | 39 29 0d 0a 20 20 20 20 | (Num > |9).. |
|00003780| 7b 0d 0a 20 20 20 20 20 | 20 20 20 54 65 6e 73 50 |{.. | TensP|
|00003790| 6c 61 63 65 20 3d 20 4e | 75 6d 20 2f 20 31 30 3b |lace = N|um / 10;|
|000037a0| 0d 0a 20 20 20 20 20 20 | 20 20 4e 75 6d 20 3d 20 |.. | Num = |
|000037b0| 4e 75 6d 20 2d 20 28 54 | 65 6e 73 50 6c 61 63 65 |Num - (T|ensPlace|
|000037c0| 20 2a 20 31 30 29 3b 0d | 0a 20 20 20 20 20 20 20 | * 10);.|. |
|000037d0| 20 43 2e 53 65 74 50 6f | 73 28 48 55 44 4c 6f 63 | C.SetPo|s(HUDLoc|
|000037e0| 61 74 69 6f 6e 2e 58 20 | 2d 20 28 31 2e 35 20 2a |ation.X |- (1.5 *|
|000037f0| 20 4c 61 62 65 6c 49 63 | 6f 6e 53 69 7a 65 20 2a | LabelIc|onSize *|
|00003800| 20 31 2e 35 29 2c 20 48 | 55 44 4c 6f 63 61 74 69 | 1.5), H|UDLocati|
|00003810| 6f 6e 2e 59 20 2d 20 4c | 61 62 65 6c 49 63 6f 6e |on.Y - L|abelIcon|
|00003820| 53 69 7a 65 20 2a 20 31 | 2e 35 29 3b 0d 0a 20 20 |Size * 1|.5);.. |
|00003830| 20 20 20 20 20 20 43 2e | 44 72 61 77 54 69 6c 65 | C.|DrawTile|
|00003840| 28 44 69 67 69 74 73 42 | 69 67 2e 44 69 67 69 74 |(DigitsB|ig.Digit|
|00003850| 54 65 78 74 75 72 65 2c | 20 4c 61 62 65 6c 49 63 |Texture,| LabelIc|
|00003860| 6f 6e 53 69 7a 65 2c 20 | 4c 61 62 65 6c 49 63 6f |onSize, |LabelIco|
|00003870| 6e 53 69 7a 65 2c 20 44 | 69 67 69 74 73 42 69 67 |nSize, D|igitsBig|
|00003880| 2e 54 65 78 74 75 72 65 | 43 6f 6f 72 64 73 5b 54 |.Texture|Coords[T|
|00003890| 65 6e 73 50 6c 61 63 65 | 5d 2e 58 31 2c 20 44 69 |ensPlace|].X1, Di|
|000038a0| 67 69 74 73 42 69 67 2e | 54 65 78 74 75 72 65 43 |gitsBig.|TextureC|
|000038b0| 6f 6f 72 64 73 5b 54 65 | 6e 73 50 6c 61 63 65 5d |oords[Te|nsPlace]|
|000038c0| 2e 59 31 2c 20 44 69 67 | 69 74 73 42 69 67 2e 54 |.Y1, Dig|itsBig.T|
|000038d0| 65 78 74 75 72 65 43 6f | 6f 72 64 73 5b 30 5d 2e |extureCo|ords[0].|
|000038e0| 58 32 2c 20 44 69 67 69 | 74 73 42 69 67 2e 54 65 |X2, Digi|tsBig.Te|
|000038f0| 78 74 75 72 65 43 6f 6f | 72 64 73 5b 30 5d 2e 59 |xtureCoo|rds[0].Y|
|00003900| 32 29 3b 0d 0a 20 20 20 | 20 7d 0d 0a 0d 0a 20 20 |2);.. | }.... |
|00003910| 20 20 43 2e 53 65 74 50 | 6f 73 28 48 55 44 4c 6f | C.SetP|os(HUDLo|
|00003920| 63 61 74 69 6f 6e 2e 58 | 20 2d 20 4c 61 62 65 6c |cation.X| - Label|
|00003930| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 31 2e 35 2c 20 |IconSize| * 1.5, |
|00003940| 48 55 44 4c 6f 63 61 74 | 69 6f 6e 2e 59 20 2d 20 |HUDLocat|ion.Y - |
|00003950| 4c 61 62 65 6c 49 63 6f | 6e 53 69 7a 65 20 2a 20 |LabelIco|nSize * |
|00003960| 31 2e 35 29 3b 0d 0a 20 | 20 20 20 43 2e 44 72 61 |1.5);.. | C.Dra|
|00003970| 77 54 69 6c 65 28 44 69 | 67 69 74 73 42 69 67 2e |wTile(Di|gitsBig.|
|00003980| 44 69 67 69 74 54 65 78 | 74 75 72 65 2c 20 4c 61 |DigitTex|ture, La|
|00003990| 62 65 6c 49 63 6f 6e 53 | 69 7a 65 2c 20 4c 61 62 |belIconS|ize, Lab|
|000039a0| 65 6c 49 63 6f 6e 53 69 | 7a 65 2c 20 44 69 67 69 |elIconSi|ze, Digi|
|000039b0| 74 73 42 69 67 2e 54 65 | 78 74 75 72 65 43 6f 6f |tsBig.Te|xtureCoo|
|000039c0| 72 64 73 5b 4e 75 6d 5d | 2e 58 31 2c 20 44 69 67 |rds[Num]|.X1, Dig|
|000039d0| 69 74 73 42 69 67 2e 54 | 65 78 74 75 72 65 43 6f |itsBig.T|extureCo|
|000039e0| 6f 72 64 73 5b 4e 75 6d | 5d 2e 59 31 2c 20 44 69 |ords[Num|].Y1, Di|
|000039f0| 67 69 74 73 42 69 67 2e | 54 65 78 74 75 72 65 43 |gitsBig.|TextureC|
|00003a00| 6f 6f 72 64 73 5b 30 5d | 2e 58 32 2c 20 44 69 67 |oords[0]|.X2, Dig|
|00003a10| 69 74 73 42 69 67 2e 54 | 65 78 74 75 72 65 43 6f |itsBig.T|extureCo|
|00003a20| 6f 72 64 73 5b 30 5d 2e | 59 32 29 3b 0d 0a 7d 0d |ords[0].|Y2);..}.|
|00003a30| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00003a40| 63 74 69 6f 6e 20 44 72 | 61 77 48 65 61 6c 74 68 |ction Dr|awHealth|
|00003a50| 42 61 72 28 43 61 6e 76 | 61 73 20 43 2c 20 41 63 |Bar(Canv|as C, Ac|
|00003a60| 74 6f 72 20 41 2c 20 69 | 6e 74 20 48 65 61 6c 74 |tor A, i|nt Healt|
|00003a70| 68 2c 20 69 6e 74 20 4d | 61 78 48 65 61 6c 74 68 |h, int M|axHealth|
|00003a80| 2c 20 66 6c 6f 61 74 20 | 48 65 69 67 68 74 29 0d |, float |Height).|
|00003a90| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 76 65 63 74 6f |.{...loc|al vecto|
|00003aa0| 72 09 09 43 61 6d 65 72 | 61 4c 6f 63 61 74 69 6f |r..Camer|aLocatio|
|00003ab0| 6e 2c 20 43 61 6d 44 69 | 72 2c 20 54 61 72 67 65 |n, CamDi|r, Targe|
|00003ac0| 74 4c 6f 63 61 74 69 6f | 6e 2c 20 48 42 53 63 72 |tLocatio|n, HBScr|
|00003ad0| 65 65 6e 50 6f 73 3b 0d | 0a 09 6c 6f 63 61 6c 20 |eenPos;.|..local |
|00003ae0| 72 6f 74 61 74 6f 72 09 | 09 43 61 6d 65 72 61 52 |rotator.|.CameraR|
|00003af0| 6f 74 61 74 69 6f 6e 3b | 0d 0a 09 6c 6f 63 61 6c |otation;|...local|
|00003b00| 20 66 6c 6f 61 74 09 09 | 09 44 69 73 74 2c 20 48 | float..|.Dist, H|
|00003b10| 65 61 6c 74 68 50 63 74 | 3b 0d 0a 09 6c 6f 63 61 |ealthPct|;...loca|
|00003b20| 6c 20 63 6f 6c 6f 72 20 | 20 20 20 20 20 20 20 20 |l color | |
|00003b30| 4f 6c 64 44 72 61 77 43 | 6f 6c 6f 72 3b 0d 0a 0d |OldDrawC|olor;...|
|00003b40| 0a 09 2f 2f 20 72 6a 70 | 20 2d 2d 20 20 64 6f 6e |..// rjp| -- don|
|00003b50| 27 74 20 64 72 61 77 20 | 74 68 65 20 68 65 61 6c |'t draw |the heal|
|00003b60| 74 68 20 62 61 72 20 69 | 66 20 6d 65 6e 75 73 20 |th bar i|f menus |
|00003b70| 61 72 65 20 6f 70 65 6e | 0d 0a 09 69 66 20 28 20 |are open|...if ( |
|00003b80| 50 6c 61 79 65 72 4f 77 | 6e 65 72 2e 50 6c 61 79 |PlayerOw|ner.Play|
|00003b90| 65 72 2e 47 55 49 43 6f | 6e 74 72 6f 6c 6c 65 72 |er.GUICo|ntroller|
|00003ba0| 2e 62 41 63 74 69 76 65 | 20 29 0d 0a 09 09 72 65 |.bActive| )....re|
|00003bb0| 74 75 72 6e 3b 0d 0a 0d | 0a 09 4f 6c 64 44 72 61 |turn;...|..OldDra|
|00003bc0| 77 43 6f 6c 6f 72 20 3d | 20 43 2e 44 72 61 77 43 |wColor =| C.DrawC|
|00003bd0| 6f 6c 6f 72 3b 0d 0a 0d | 0a 09 43 2e 47 65 74 43 |olor;...|..C.GetC|
|00003be0| 61 6d 65 72 61 4c 6f 63 | 61 74 69 6f 6e 28 20 43 |ameraLoc|ation( C|
|00003bf0| 61 6d 65 72 61 4c 6f 63 | 61 74 69 6f 6e 2c 20 43 |ameraLoc|ation, C|
|00003c00| 61 6d 65 72 61 52 6f 74 | 61 74 69 6f 6e 20 29 3b |ameraRot|ation );|
|00003c10| 0d 0a 09 54 61 72 67 65 | 74 4c 6f 63 61 74 69 6f |...Targe|tLocatio|
|00003c20| 6e 20 3d 20 41 2e 4c 6f | 63 61 74 69 6f 6e 20 2b |n = A.Lo|cation +|
|00003c30| 20 76 65 63 74 28 30 2c | 30 2c 31 29 20 2a 20 48 | vect(0,|0,1) * H|
|00003c40| 65 69 67 68 74 3b 0d 0a | 09 44 69 73 74 20 3d 20 |eight;..|.Dist = |
|00003c50| 56 53 69 7a 65 28 54 61 | 72 67 65 74 4c 6f 63 61 |VSize(Ta|rgetLoca|
|00003c60| 74 69 6f 6e 20 2d 20 43 | 61 6d 65 72 61 4c 6f 63 |tion - C|ameraLoc|
|00003c70| 61 74 69 6f 6e 29 3b 0d | 0a 0d 0a 09 2f 2f 20 43 |ation);.|....// C|
|00003c80| 68 65 63 6b 20 44 69 73 | 74 61 6e 63 65 20 54 68 |heck Dis|tance Th|
|00003c90| 72 65 73 68 6f 6c 64 0d | 0a 09 69 66 20 28 44 69 |reshold.|..if (Di|
|00003ca0| 73 74 20 3e 20 48 65 61 | 6c 74 68 42 61 72 56 69 |st > Hea|lthBarVi|
|00003cb0| 65 77 44 69 73 74 29 0d | 0a 09 09 72 65 74 75 72 |ewDist).|...retur|
|00003cc0| 6e 3b 0d 0a 0d 0a 09 43 | 61 6d 44 69 72 09 3d 20 |n;.....C|amDir.= |
|00003cd0| 76 65 63 74 6f 72 28 43 | 61 6d 65 72 61 52 6f 74 |vector(C|ameraRot|
|00003ce0| 61 74 69 6f 6e 29 3b 0d | 0a 0d 0a 09 2f 2f 20 54 |ation);.|....// T|
|00003cf0| 61 72 67 65 74 20 69 73 | 20 6c 6f 63 61 74 65 64 |arget is| located|
|00003d00| 20 62 65 68 69 6e 64 20 | 63 61 6d 65 72 61 0d 0a | behind |camera..|
|00003d10| 09 48 42 53 63 72 65 65 | 6e 50 6f 73 20 3d 20 43 |.HBScree|nPos = C|
|00003d20| 2e 57 6f 72 6c 64 54 6f | 53 63 72 65 65 6e 28 54 |.WorldTo|Screen(T|
|00003d30| 61 72 67 65 74 4c 6f 63 | 61 74 69 6f 6e 29 3b 0d |argetLoc|ation);.|
|00003d40| 0a 09 69 66 20 28 28 54 | 61 72 67 65 74 4c 6f 63 |..if ((T|argetLoc|
|00003d50| 61 74 69 6f 6e 20 2d 20 | 43 61 6d 65 72 61 4c 6f |ation - |CameraLo|
|00003d60| 63 61 74 69 6f 6e 29 20 | 64 6f 74 20 43 61 6d 44 |cation) |dot CamD|
|00003d70| 69 72 20 3c 20 30 20 7c | 7c 20 48 42 53 63 72 65 |ir < 0 ||| HBScre|
|00003d80| 65 6e 50 6f 73 2e 58 20 | 3c 3d 20 30 20 7c 7c 20 |enPos.X |<= 0 || |
|00003d90| 48 42 53 63 72 65 65 6e | 50 6f 73 2e 58 20 3e 3d |HBScreen|Pos.X >=|
|00003da0| 20 43 2e 53 69 7a 65 58 | 20 7c 7c 20 48 42 53 63 | C.SizeX| || HBSc|
|00003db0| 72 65 65 6e 50 6f 73 2e | 59 20 3c 3d 20 30 20 7c |reenPos.|Y <= 0 ||
|00003dc0| 7c 20 48 42 53 63 72 65 | 65 6e 50 6f 73 2e 59 20 || HBScre|enPos.Y |
|00003dd0| 3e 3d 20 43 2e 53 69 7a | 65 59 29 0d 0a 09 7b 0d |>= C.Siz|eY)...{.|
|00003de0| 0a 09 09 54 61 72 67 65 | 74 4c 6f 63 61 74 69 6f |...Targe|tLocatio|
|00003df0| 6e 20 3d 20 41 2e 4c 6f | 63 61 74 69 6f 6e 20 2b |n = A.Lo|cation +|
|00003e00| 20 76 65 63 74 28 30 2c | 30 2c 31 29 20 2a 20 41 | vect(0,|0,1) * A|
|00003e10| 2e 43 6f 6c 6c 69 73 69 | 6f 6e 48 65 69 67 68 74 |.Collisi|onHeight|
|00003e20| 3b 0d 0a 09 09 69 66 20 | 28 28 54 61 72 67 65 74 |;....if |((Target|
|00003e30| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 43 61 6d 65 72 |Location| - Camer|
|00003e40| 61 4c 6f 63 61 74 69 6f | 6e 29 20 64 6f 74 20 43 |aLocatio|n) dot C|
|00003e50| 61 6d 44 69 72 20 3c 20 | 30 29 0d 0a 09 09 09 72 |amDir < |0).....r|
|00003e60| 65 74 75 72 6e 3b 0d 0a | 09 09 48 42 53 63 72 65 |eturn;..|..HBScre|
|00003e70| 65 6e 50 6f 73 20 3d 20 | 43 2e 57 6f 72 6c 64 54 |enPos = |C.WorldT|
|00003e80| 6f 53 63 72 65 65 6e 28 | 54 61 72 67 65 74 4c 6f |oScreen(|TargetLo|
|00003e90| 63 61 74 69 6f 6e 29 3b | 0d 0a 09 09 69 66 20 28 |cation);|....if (|
|00003ea0| 48 42 53 63 72 65 65 6e | 50 6f 73 2e 58 20 3c 3d |HBScreen|Pos.X <=|
|00003eb0| 20 30 20 7c 7c 20 48 42 | 53 63 72 65 65 6e 50 6f | 0 || HB|ScreenPo|
|00003ec0| 73 2e 58 20 3e 3d 20 43 | 2e 43 6c 69 70 58 20 7c |s.X >= C|.ClipX ||
|00003ed0| 7c 20 48 42 53 63 72 65 | 65 6e 50 6f 73 2e 59 20 || HBScre|enPos.Y |
|00003ee0| 3c 3d 20 30 20 7c 7c 20 | 48 42 53 63 72 65 65 6e |<= 0 || |HBScreen|
|00003ef0| 50 6f 73 2e 59 20 3e 3d | 20 43 2e 43 6c 69 70 59 |Pos.Y >=| C.ClipY|
|00003f00| 29 0d 0a 09 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |).....re|turn;...|
|00003f10| 7d 0d 0a 0d 0a 09 69 66 | 20 28 46 61 73 74 54 72 |}.....if| (FastTr|
|00003f20| 61 63 65 28 54 61 72 67 | 65 74 4c 6f 63 61 74 69 |ace(Targ|etLocati|
|00003f30| 6f 6e 2c 20 43 61 6d 65 | 72 61 4c 6f 63 61 74 69 |on, Came|raLocati|
|00003f40| 6f 6e 29 29 0d 0a 09 7b | 0d 0a 09 20 20 20 20 09 |on))...{|... .|
|00003f50| 43 2e 44 72 61 77 43 6f | 6c 6f 72 20 3d 20 57 68 |C.DrawCo|lor = Wh|
|00003f60| 69 74 65 43 6f 6c 6f 72 | 3b 0d 0a 0d 0a 09 20 20 |iteColor|;..... |
|00003f70| 20 20 09 43 2e 53 65 74 | 50 6f 73 28 48 42 53 63 | .C.Set|Pos(HBSc|
|00003f80| 72 65 65 6e 50 6f 73 2e | 58 20 2d 20 48 65 61 6c |reenPos.|X - Heal|
|00003f90| 74 68 42 61 72 57 69 64 | 74 68 20 2a 20 30 2e 35 |thBarWid|th * 0.5|
|00003fa0| 2c 20 48 42 53 63 72 65 | 65 6e 50 6f 73 2e 59 29 |, HBScre|enPos.Y)|
|00003fb0| 3b 0d 0a 09 20 20 20 20 | 09 43 2e 44 72 61 77 54 |;... |.C.DrawT|
|00003fc0| 69 6c 65 53 74 72 65 74 | 63 68 65 64 28 48 65 61 |ileStret|ched(Hea|
|00003fd0| 6c 74 68 42 61 72 42 61 | 63 6b 4d 61 74 2c 20 48 |lthBarBa|ckMat, H|
|00003fe0| 65 61 6c 74 68 42 61 72 | 57 69 64 74 68 2c 20 48 |ealthBar|Width, H|
|00003ff0| 65 61 6c 74 68 42 61 72 | 48 65 69 67 68 74 29 3b |ealthBar|Height);|
|00004000| 0d 0a 0d 0a 09 20 20 20 | 20 09 48 65 61 6c 74 68 |..... | .Health|
|00004010| 50 63 74 20 3d 20 31 2e | 30 66 20 2a 20 48 65 61 |Pct = 1.|0f * Hea|
|00004020| 6c 74 68 20 2f 20 4d 61 | 78 48 65 61 6c 74 68 3b |lth / Ma|xHealth;|
|00004030| 0d 0a 0d 0a 09 20 20 20 | 20 09 69 66 20 28 48 65 |..... | .if (He|
|00004040| 61 6c 74 68 50 63 74 20 | 3c 20 30 2e 33 35 29 0d |althPct |< 0.35).|
|00004050| 0a 09 20 20 20 20 09 20 | 20 20 43 2e 44 72 61 77 |.. . | C.Draw|
|00004060| 43 6f 6c 6f 72 20 3d 20 | 52 65 64 43 6f 6c 6f 72 |Color = |RedColor|
|00004070| 3b 0d 0a 09 20 20 20 20 | 09 65 6c 73 65 20 69 66 |;... |.else if|
|00004080| 20 28 48 65 61 6c 74 68 | 50 63 74 20 3c 20 30 2e | (Health|Pct < 0.|
|00004090| 37 30 29 0d 0a 09 20 20 | 20 20 09 20 20 20 43 2e |70)... | . C.|
|000040a0| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 47 6f 6c 64 |DrawColo|r = Gold|
|000040b0| 43 6f 6c 6f 72 3b 0d 0a | 09 20 20 20 20 09 65 6c |Color;..|. .el|
|000040c0| 73 65 0d 0a 09 20 20 20 | 20 09 20 20 20 43 2e 44 |se... | . C.D|
|000040d0| 72 61 77 43 6f 6c 6f 72 | 20 3d 20 47 72 65 65 6e |rawColor| = Green|
|000040e0| 43 6f 6c 6f 72 3b 0d 0a | 0d 0a 09 20 20 20 20 09 |Color;..|... .|
|000040f0| 43 2e 53 65 74 50 6f 73 | 28 48 42 53 63 72 65 65 |C.SetPos|(HBScree|
|00004100| 6e 50 6f 73 2e 58 20 2d | 20 48 65 61 6c 74 68 42 |nPos.X -| HealthB|
|00004110| 61 72 57 69 64 74 68 20 | 2a 20 30 2e 35 2c 20 48 |arWidth |* 0.5, H|
|00004120| 42 53 63 72 65 65 6e 50 | 6f 73 2e 59 29 3b 0d 0a |BScreenP|os.Y);..|
|00004130| 09 20 20 20 20 09 43 2e | 44 72 61 77 54 69 6c 65 |. .C.|DrawTile|
|00004140| 53 74 72 65 74 63 68 65 | 64 28 48 65 61 6c 74 68 |Stretche|d(Health|
|00004150| 42 61 72 4d 61 74 2c 20 | 48 65 61 6c 74 68 42 61 |BarMat, |HealthBa|
|00004160| 72 57 69 64 74 68 20 2a | 20 48 65 61 6c 74 68 50 |rWidth *| HealthP|
|00004170| 63 74 2c 20 48 65 61 6c | 74 68 42 61 72 48 65 69 |ct, Heal|thBarHei|
|00004180| 67 68 74 29 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 43 2e |ght);...|}.....C.|
|00004190| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 4f 6c 64 44 |DrawColo|r = OldD|
|000041a0| 72 61 77 43 6f 6c 6f 72 | 3b 0d 0a 7d 0d 0a 0d 0a |rawColor|;..}....|
|000041b0| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|000041c0| 6f 6e 20 54 69 6d 65 72 | 28 29 0d 0a 7b 0d 0a 09 |on Timer|()..{...|
|000041d0| 6c 6f 63 61 6c 20 4f 4e | 53 50 6f 77 65 72 43 6f |local ON|SPowerCo|
|000041e0| 72 65 20 43 3b 0d 0a 0d | 0a 09 69 66 20 28 50 6c |re C;...|..if (Pl|
|000041f0| 61 79 65 72 4f 77 6e 65 | 72 2e 50 61 77 6e 20 21 |ayerOwne|r.Pawn !|
|00004200| 3d 20 4e 6f 6e 65 20 26 | 26 20 4f 77 6e 65 72 50 |= None &|& OwnerP|
|00004210| 52 49 20 21 3d 20 4e 6f | 6e 65 20 26 26 20 4f 77 |RI != No|ne && Ow|
|00004220| 6e 65 72 50 52 49 2e 54 | 65 61 6d 20 21 3d 20 4e |nerPRI.T|eam != N|
|00004230| 6f 6e 65 29 0d 0a 09 7b | 0d 0a 09 09 43 20 3d 20 |one)...{|....C = |
|00004240| 4f 77 6e 65 72 50 52 49 | 2e 47 65 74 43 75 72 72 |OwnerPRI|.GetCurr|
|00004250| 65 6e 74 4e 6f 64 65 28 | 29 3b 0d 0a 09 09 69 66 |entNode(|);....if|
|00004260| 20 28 43 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 | (C != N|one)....|
|00004270| 09 50 6c 61 79 65 72 4f | 77 6e 65 72 2e 52 65 63 |.PlayerO|wner.Rec|
|00004280| 65 69 76 65 4c 6f 63 61 | 6c 69 7a 65 64 4d 65 73 |eiveLoca|lizedMes|
|00004290| 73 61 67 65 28 63 6c 61 | 73 73 27 4f 4e 53 4f 6e |sage(cla|ss'ONSOn|
|000042a0| 73 6c 61 75 67 68 74 4d | 65 73 73 61 67 65 27 2c |slaughtM|essage',|
|000042b0| 20 32 32 29 3b 0d 0a 09 | 7d 0d 0a 7d 0d 0a 0d 0a | 22);...|}..}....|
|000042c0| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|000042d0| 6f 6e 20 54 69 63 6b 28 | 66 6c 6f 61 74 20 64 65 |on Tick(|float de|
|000042e0| 6c 74 61 54 69 6d 65 29 | 0d 0a 7b 0d 0a 20 20 20 |ltaTime)|..{.. |
|000042f0| 20 6c 6f 63 61 6c 20 4f | 4e 53 50 6f 77 65 72 43 | local O|NSPowerC|
|00004300| 6f 72 65 20 43 6f 72 65 | 3b 0d 0a 0d 0a 09 53 75 |ore Core|;.....Su|
|00004310| 70 65 72 2e 54 69 63 6b | 28 64 65 6c 74 61 54 69 |per.Tick|(deltaTi|
|00004320| 6d 65 29 3b 0d 0a 0d 0a | 09 69 66 20 28 20 4f 77 |me);....|.if ( Ow|
|00004330| 6e 65 72 50 52 49 20 3d | 3d 20 4e 6f 6e 65 20 26 |nerPRI =|= None &|
|00004340| 26 20 50 61 77 6e 4f 77 | 6e 65 72 50 52 49 20 21 |& PawnOw|nerPRI !|
|00004350| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 4f 77 6e 65 |= None )|....Owne|
|00004360| 72 50 52 49 20 3d 20 4f | 4e 53 50 6c 61 79 65 72 |rPRI = O|NSPlayer|
|00004370| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 28 |Replicat|ionInfo(|
|00004380| 50 61 77 6e 4f 77 6e 65 | 72 50 52 49 29 3b 0d 0a |PawnOwne|rPRI);..|
|00004390| 0d 0a 09 69 66 20 28 46 | 69 6e 61 6c 43 6f 72 65 |...if (F|inalCore|
|000043a0| 5b 30 5d 2e 44 65 66 65 | 6e 64 65 72 54 65 61 6d |[0].Defe|nderTeam|
|000043b0| 49 6e 64 65 78 20 21 3d | 20 30 29 0d 0a 09 7b 0d |Index !=| 0)...{.|
|000043c0| 0a 20 20 20 20 09 66 6f | 72 65 61 63 68 20 41 6c |. .fo|reach Al|
|000043d0| 6c 41 63 74 6f 72 73 28 | 20 63 6c 61 73 73 27 4f |lActors(| class'O|
|000043e0| 4e 53 50 6f 77 65 72 43 | 6f 72 65 27 2c 20 43 6f |NSPowerC|ore', Co|
|000043f0| 72 65 20 29 0d 0a 20 20 | 20 20 09 09 69 66 20 28 |re ).. | ..if (|
|00004400| 20 43 6f 72 65 2e 62 46 | 69 6e 61 6c 43 6f 72 65 | Core.bF|inalCore|
|00004410| 20 26 26 20 28 43 6f 72 | 65 2e 44 65 66 65 6e 64 | && (Cor|e.Defend|
|00004420| 65 72 54 65 61 6d 49 6e | 64 65 78 20 3c 20 32 29 |erTeamIn|dex < 2)|
|00004430| 20 29 0d 0a 20 20 20 20 | 09 09 09 46 69 6e 61 6c | ).. |...Final|
|00004440| 43 6f 72 65 5b 43 6f 72 | 65 2e 44 65 66 65 6e 64 |Core[Cor|e.Defend|
|00004450| 65 72 54 65 61 6d 49 6e | 64 65 78 5d 20 3d 20 43 |erTeamIn|dex] = C|
|00004460| 6f 72 65 3b 0d 0a 20 20 | 20 20 7d 0d 0a 0d 0a 09 |ore;.. | }.....|
|00004470| 69 66 20 28 20 21 62 52 | 65 63 65 69 76 65 64 4c |if ( !bR|eceivedL|
|00004480| 69 6e 6b 73 20 26 26 20 | 4f 77 6e 65 72 50 52 49 |inks && |OwnerPRI|
|00004490| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 7b 0d 0a | != None| )...{..|
|000044a0| 09 09 43 6c 65 61 72 4c | 69 6e 6b 73 28 29 3b 0d |..ClearL|inks();.|
|000044b0| 0a 09 09 52 65 71 75 65 | 73 74 50 6f 77 65 72 4c |...Reque|stPowerL|
|000044c0| 69 6e 6b 73 28 29 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |inks();.|..}.....|
|000044d0| 43 6f 6c 6f 72 50 65 72 | 63 65 6e 74 20 3d 20 30 |ColorPer|cent = 0|
|000044e0| 2e 35 66 20 2b 20 43 6f | 73 28 28 4c 65 76 65 6c |.5f + Co|s((Level|
|000044f0| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 2a 20 34 |.TimeSec|onds * 4|
|00004500| 2e 30 29 20 2a 20 33 2e | 31 34 31 35 39 20 2a 20 |.0) * 3.|14159 * |
|00004510| 30 2e 35 66 29 20 2a 20 | 30 2e 35 66 3b 0d 0a 7d |0.5f) * |0.5f;..}|
|00004520| 0d 0a 0d 0a 73 69 6d 75 | 6c 61 74 65 64 20 66 75 |....simu|lated fu|
|00004530| 6e 63 74 69 6f 6e 20 52 | 65 71 75 65 73 74 50 6f |nction R|equestPo|
|00004540| 77 65 72 4c 69 6e 6b 73 | 28 29 0d 0a 7b 0d 0a 09 |werLinks|()..{...|
|00004550| 69 66 20 28 20 4f 77 6e | 65 72 50 52 49 20 21 3d |if ( Own|erPRI !=|
|00004560| 20 4e 6f 6e 65 20 29 0d | 0a 09 7b 0d 0a 09 09 4f | None ).|..{....O|
|00004570| 77 6e 65 72 50 52 49 2e | 4f 6e 52 65 63 65 69 76 |wnerPRI.|OnReceiv|
|00004580| 65 4c 69 6e 6b 20 3d 20 | 52 65 63 65 69 76 65 4c |eLink = |ReceiveL|
|00004590| 69 6e 6b 3b 0d 0a 09 09 | 4f 77 6e 65 72 50 52 49 |ink;....|OwnerPRI|
|000045a0| 2e 4f 6e 52 65 6d 6f 76 | 65 4c 69 6e 6b 20 3d 20 |.OnRemov|eLink = |
|000045b0| 52 65 6d 6f 76 65 4c 69 | 6e 6b 3b 0d 0a 09 09 4f |RemoveLi|nk;....O|
|000045c0| 77 6e 65 72 50 52 49 2e | 52 65 73 65 74 4c 69 6e |wnerPRI.|ResetLin|
|000045d0| 6b 73 20 3d 20 52 65 73 | 65 74 4c 69 6e 6b 73 3b |ks = Res|etLinks;|
|000045e0| 0d 0a 09 09 4f 77 6e 65 | 72 50 52 49 2e 53 65 72 |....Owne|rPRI.Ser|
|000045f0| 76 65 72 53 65 6e 64 50 | 6f 77 65 72 4c 69 6e 6b |verSendP|owerLink|
|00004600| 73 28 29 3b 0d 0a 09 09 | 62 52 65 63 65 69 76 65 |s();....|bReceive|
|00004610| 64 4c 69 6e 6b 73 20 3d | 20 74 72 75 65 3b 0d 0a |dLinks =| true;..|
|00004620| 09 7d 0d 0a 7d 0d 0a 0d | 0a 65 78 65 63 20 66 75 |.}..}...|.exec fu|
|00004630| 6e 63 74 69 6f 6e 20 54 | 6f 67 67 6c 65 52 61 64 |nction T|oggleRad|
|00004640| 61 72 4d 61 70 28 29 0d | 0a 7b 0d 0a 09 62 4d 61 |arMap().|.{...bMa|
|00004650| 70 44 69 73 61 62 6c 65 | 64 20 3d 20 21 62 4d 61 |pDisable|d = !bMa|
|00004660| 70 44 69 73 61 62 6c 65 | 64 3b 0d 0a 7d 0d 0a 0d |pDisable|d;..}...|
|00004670| 0a 2f 2f 65 78 65 63 20 | 66 75 6e 63 74 69 6f 6e |.//exec |function|
|00004680| 20 5a 6f 6f 6d 49 6e 52 | 61 64 61 72 4d 61 70 28 | ZoomInR|adarMap(|
|00004690| 29 0d 0a 2f 2f 7b 0d 0a | 2f 2f 20 20 20 20 52 61 |)..//{..|// Ra|
|000046a0| 64 61 72 52 61 6e 67 65 | 20 3d 20 4d 61 78 28 52 |darRange| = Max(R|
|000046b0| 61 64 61 72 52 61 6e 67 | 65 20 2d 20 28 52 61 64 |adarRang|e - (Rad|
|000046c0| 61 72 4d 61 78 52 61 6e | 67 65 20 2a 20 30 2e 31 |arMaxRan|ge * 0.1|
|000046d0| 29 2c 20 33 30 30 30 2e | 30 29 3b 0d 0a 2f 2f 7d |), 3000.|0);..//}|
|000046e0| 0d 0a 2f 2f 0d 0a 2f 2f | 65 78 65 63 20 66 75 6e |..//..//|exec fun|
|000046f0| 63 74 69 6f 6e 20 5a 6f | 6f 6d 4f 75 74 52 61 64 |ction Zo|omOutRad|
|00004700| 61 72 4d 61 70 28 29 0d | 0a 2f 2f 7b 0d 0a 2f 2f |arMap().|.//{..//|
|00004710| 20 20 20 20 52 61 64 61 | 72 52 61 6e 67 65 20 3d | Rada|rRange =|
|00004720| 20 4d 69 6e 28 52 61 64 | 61 72 52 61 6e 67 65 20 | Min(Rad|arRange |
|00004730| 2b 20 28 52 61 64 61 72 | 4d 61 78 52 61 6e 67 65 |+ (Radar|MaxRange|
|00004740| 20 2a 20 30 2e 31 29 2c | 20 52 61 64 61 72 4d 61 | * 0.1),| RadarMa|
|00004750| 78 52 61 6e 67 65 29 3b | 0d 0a 2f 2f 7d 0d 0a 0d |xRange);|..//}...|
|00004760| 0a 65 78 65 63 20 66 75 | 6e 63 74 69 6f 6e 20 4c |.exec fu|nction L|
|00004770| 69 6e 6b 44 65 73 69 67 | 6e 65 72 28 29 0d 0a 7b |inkDesig|ner()..{|
|00004780| 0d 0a 20 20 20 20 69 66 | 20 28 4f 77 6e 65 72 50 |.. if| (OwnerP|
|00004790| 52 49 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 4f |RI != No|ne)....O|
|000047a0| 77 6e 65 72 50 52 49 2e | 52 65 71 75 65 73 74 4c |wnerPRI.|RequestL|
|000047b0| 69 6e 6b 44 65 73 69 67 | 6e 65 72 28 29 3b 0d 0a |inkDesig|ner();..|
|000047c0| 7d 0d 0a 0d 0a 65 78 65 | 63 20 66 75 6e 63 74 69 |}....exe|c functi|
|000047d0| 6f 6e 20 43 6f 70 79 4c | 69 6e 6b 53 65 74 75 70 |on CopyL|inkSetup|
|000047e0| 28 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 4f 4e |()..{...|local ON|
|000047f0| 53 50 6f 77 65 72 4c 69 | 6e 6b 4f 66 66 69 63 69 |SPowerLi|nkOffici|
|00004800| 61 6c 53 65 74 75 70 20 | 53 3b 0d 0a 09 6c 6f 63 |alSetup |S;...loc|
|00004810| 61 6c 20 4f 4e 53 4f 6e | 73 6c 61 75 67 68 74 47 |al ONSOn|slaughtG|
|00004820| 61 6d 65 2e 50 6f 77 65 | 72 4c 69 6e 6b 53 65 74 |ame.Powe|rLinkSet|
|00004830| 75 70 20 42 6c 61 6e 6b | 53 65 74 75 70 3b 0d 0a |up Blank|Setup;..|
|00004840| 09 6c 6f 63 61 6c 20 4f | 4e 53 50 6f 77 65 72 43 |.local O|NSPowerC|
|00004850| 6f 72 65 20 4f 3b 0d 0a | 09 6c 6f 63 61 6c 20 69 |ore O;..|.local i|
|00004860| 6e 74 20 78 2c 20 79 3b | 0d 0a 0d 0a 09 53 20 3d |nt x, y;|.....S =|
|00004870| 20 73 70 61 77 6e 28 63 | 6c 61 73 73 27 4f 4e 53 | spawn(c|lass'ONS|
|00004880| 50 6f 77 65 72 4c 69 6e | 6b 4f 66 66 69 63 69 61 |PowerLin|kOfficia|
|00004890| 6c 53 65 74 75 70 27 29 | 3b 0d 0a 09 66 6f 72 65 |lSetup')|;...fore|
|000048a0| 61 63 68 20 44 79 6e 61 | 6d 69 63 41 63 74 6f 72 |ach Dyna|micActor|
|000048b0| 73 28 63 6c 61 73 73 27 | 4f 4e 53 50 6f 77 65 72 |s(class'|ONSPower|
|000048c0| 43 6f 72 65 27 2c 20 4f | 29 0d 0a 09 7b 0d 0a 09 |Core', O|)...{...|
|000048d0| 09 53 2e 4c 69 6e 6b 53 | 65 74 75 70 73 5b 78 5d |.S.LinkS|etups[x]|
|000048e0| 20 3d 20 42 6c 61 6e 6b | 53 65 74 75 70 3b 0d 0a | = Blank|Setup;..|
|000048f0| 09 09 53 2e 4c 69 6e 6b | 53 65 74 75 70 73 5b 78 |..S.Link|Setups[x|
|00004900| 5d 2e 42 61 73 65 4e 6f | 64 65 20 3d 20 4f 2e 4e |].BaseNo|de = O.N|
|00004910| 61 6d 65 3b 0d 0a 09 09 | 66 6f 72 20 28 79 20 3d |ame;....|for (y =|
|00004920| 20 30 3b 20 79 20 3c 20 | 4f 2e 50 6f 77 65 72 4c | 0; y < |O.PowerL|
|00004930| 69 6e 6b 73 2e 6c 65 6e | 67 74 68 3b 20 79 2b 2b |inks.len|gth; y++|
|00004940| 29 0d 0a 09 09 09 53 2e | 4c 69 6e 6b 53 65 74 75 |).....S.|LinkSetu|
|00004950| 70 73 5b 78 5d 2e 4c 69 | 6e 6b 65 64 4e 6f 64 65 |ps[x].Li|nkedNode|
|00004960| 73 5b 79 5d 20 3d 20 4f | 2e 50 6f 77 65 72 4c 69 |s[y] = O|.PowerLi|
|00004970| 6e 6b 73 5b 79 5d 2e 4e | 61 6d 65 3b 0d 0a 09 09 |nks[y].N|ame;....|
|00004980| 78 2b 2b 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 43 6f 70 |x++;...}|.....Cop|
|00004990| 79 4f 62 6a 65 63 74 54 | 6f 43 6c 69 70 62 6f 61 |yObjectT|oClipboa|
|000049a0| 72 64 28 53 29 3b 0d 0a | 09 53 2e 44 65 73 74 72 |rd(S);..|.S.Destr|
|000049b0| 6f 79 28 29 3b 0d 0a 0d | 0a 09 50 6c 61 79 65 72 |oy();...|..Player|
|000049c0| 4f 77 6e 65 72 2e 43 6c | 69 65 6e 74 4d 65 73 73 |Owner.Cl|ientMess|
|000049d0| 61 67 65 28 22 4c 69 6e | 6b 20 73 65 74 75 70 20 |age("Lin|k setup |
|000049e0| 63 6f 70 69 65 64 20 74 | 6f 20 63 6c 69 70 62 6f |copied t|o clipbo|
|000049f0| 61 72 64 22 29 3b 0d 0a | 7d 0d 0a 0d 0a 73 69 6d |ard");..|}....sim|
|00004a00| 75 6c 61 74 65 64 20 66 | 75 6e 63 74 69 6f 6e 20 |ulated f|unction |
|00004a10| 55 70 64 61 74 65 50 72 | 65 63 61 63 68 65 4d 61 |UpdatePr|ecacheMa|
|00004a20| 74 65 72 69 61 6c 73 28 | 29 0d 0a 7b 0d 0a 20 20 |terials(|)..{.. |
|00004a30| 20 20 4c 65 76 65 6c 2e | 41 64 64 50 72 65 63 61 | Level.|AddPreca|
|00004a40| 63 68 65 4d 61 74 65 72 | 69 61 6c 28 4d 61 74 65 |cheMater|ial(Mate|
|00004a50| 72 69 61 6c 27 48 75 64 | 43 6f 6e 74 65 6e 74 2e |rial'Hud|Content.|
|00004a60| 47 65 6e 65 72 69 63 2e | 4e 6f 45 6e 74 72 79 27 |Generic.|NoEntry'|
|00004a70| 29 3b 0d 0a 20 20 20 20 | 4c 65 76 65 6c 2e 41 64 |);.. |Level.Ad|
|00004a80| 64 50 72 65 63 61 63 68 | 65 4d 61 74 65 72 69 61 |dPrecach|eMateria|
|00004a90| 6c 28 4d 61 74 65 72 69 | 61 6c 27 48 75 64 43 6f |l(Materi|al'HudCo|
|00004aa0| 6e 74 65 6e 74 2e 47 65 | 6e 65 72 69 63 2e 48 55 |ntent.Ge|neric.HU|
|00004ab0| 44 27 29 3b 0d 0a 20 20 | 20 20 4c 65 76 65 6c 2e |D');.. | Level.|
|00004ac0| 41 64 64 50 72 65 63 61 | 63 68 65 4d 61 74 65 72 |AddPreca|cheMater|
|00004ad0| 69 61 6c 28 4d 61 74 65 | 72 69 61 6c 27 49 6e 74 |ial(Mate|rial'Int|
|00004ae0| 65 72 66 61 63 65 43 6f | 6e 74 65 6e 74 2e 42 6f |erfaceCo|ntent.Bo|
|00004af0| 72 64 65 72 42 6f 78 44 | 27 29 3b 0d 0a 20 20 20 |rderBoxD|');.. |
|00004b00| 20 4c 65 76 65 6c 2e 41 | 64 64 50 72 65 63 61 63 | Level.A|ddPrecac|
|00004b10| 68 65 4d 61 74 65 72 69 | 61 6c 28 4d 61 74 65 72 |heMateri|al(Mater|
|00004b20| 69 61 6c 27 4f 4e 53 49 | 6e 74 65 72 66 61 63 65 |ial'ONSI|nterface|
|00004b30| 2d 54 58 2e 48 65 61 6c | 74 68 42 61 72 27 29 3b |-TX.Heal|thBar');|
|00004b40| 0d 0a 20 20 20 20 4c 65 | 76 65 6c 2e 41 64 64 50 |.. Le|vel.AddP|
|00004b50| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 28 |recacheM|aterial(|
|00004b60| 4d 61 74 65 72 69 61 6c | 27 4f 4e 53 49 6e 74 65 |Material|'ONSInte|
|00004b70| 72 66 61 63 65 2d 54 58 | 2e 4d 61 70 42 6f 72 64 |rface-TX|.MapBord|
|00004b80| 65 72 54 65 78 27 29 3b | 0d 0a 20 20 20 20 4c 65 |erTex');|.. Le|
|00004b90| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|00004ba0| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|00004bb0| 27 4f 4e 53 49 6e 74 65 | 72 66 61 63 65 2d 54 58 |'ONSInte|rface-TX|
|00004bc0| 2e 4e 65 77 48 55 44 69 | 63 6f 6e 73 27 29 3b 0d |.NewHUDi|cons');.|
|00004bd0| 0a 20 20 20 20 4c 65 76 | 65 6c 2e 41 64 64 50 72 |. Lev|el.AddPr|
|00004be0| 65 63 61 63 68 65 4d 61 | 74 65 72 69 61 6c 28 4d |ecacheMa|terial(M|
|00004bf0| 61 74 65 72 69 61 6c 27 | 4f 4e 53 49 6e 74 65 72 |aterial'|ONSInter|
|00004c00| 66 61 63 65 2d 54 58 2e | 43 75 72 72 65 6e 74 50 |face-TX.|CurrentP|
|00004c10| 6c 61 79 65 72 49 63 6f | 6e 27 29 3b 0d 0a 0d 0a |layerIco|n');....|
|00004c20| 09 53 75 70 65 72 2e 55 | 70 64 61 74 65 50 72 65 |.Super.U|pdatePre|
|00004c30| 63 61 63 68 65 4d 61 74 | 65 72 69 61 6c 73 28 29 |cacheMat|erials()|
|00004c40| 3b 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |;..}....|simulate|
|00004c50| 64 20 73 74 61 74 69 63 | 20 66 75 6e 63 74 69 6f |d static| functio|
|00004c60| 6e 20 62 6f 6f 6c 20 43 | 6f 72 65 57 6f 72 6c 64 |n bool C|oreWorld|
|00004c70| 54 6f 53 63 72 65 65 6e | 28 20 4f 4e 53 50 6f 77 |ToScreen|( ONSPow|
|00004c80| 65 72 43 6f 72 65 20 43 | 6f 72 65 2c 20 6f 75 74 |erCore C|ore, out|
|00004c90| 20 76 65 63 74 6f 72 20 | 53 63 72 65 65 6e 50 6f | vector |ScreenPo|
|00004ca0| 73 2c 20 66 6c 6f 61 74 | 20 53 63 72 65 65 6e 58 |s, float| ScreenX|
|00004cb0| 2c 20 66 6c 6f 61 74 20 | 53 63 72 65 65 6e 59 2c |, float |ScreenY,|
|00004cc0| 20 66 6c 6f 61 74 20 52 | 61 64 61 72 57 69 64 74 | float R|adarWidt|
|00004cd0| 68 2c 20 66 6c 6f 61 74 | 20 52 61 6e 67 65 2c 20 |h, float| Range, |
|00004ce0| 76 65 63 74 6f 72 20 43 | 65 6e 74 65 72 2c 20 6f |vector C|enter, o|
|00004cf0| 70 74 69 6f 6e 61 6c 20 | 62 6f 6f 6c 20 62 49 67 |ptional |bool bIg|
|00004d00| 6e 6f 72 65 52 61 6e 67 | 65 20 29 0d 0a 7b 0d 0a |noreRang|e )..{..|
|00004d10| 09 6c 6f 63 61 6c 20 76 | 65 63 74 6f 72 20 53 63 |.local v|ector Sc|
|00004d20| 72 65 65 6e 4c 6f 63 61 | 74 69 6f 6e 3b 0d 0a 09 |reenLoca|tion;...|
|00004d30| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 20 44 69 73 74 |local fl|oat Dist|
|00004d40| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 43 6f 72 65 20 |;.....if| ( Core |
|00004d50| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 72 65 74 |== None |)....ret|
|00004d60| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 0d 0a 20 20 |urn fals|e;.... |
|00004d70| 20 20 53 63 72 65 65 6e | 4c 6f 63 61 74 69 6f 6e | Screen|Location|
|00004d80| 20 3d 20 43 6f 72 65 2e | 4c 6f 63 61 74 69 6f 6e | = Core.|Location|
|00004d90| 20 2d 20 43 65 6e 74 65 | 72 3b 0d 0a 20 20 20 20 | - Cente|r;.. |
|00004da0| 53 63 72 65 65 6e 4c 6f | 63 61 74 69 6f 6e 2e 5a |ScreenLo|cation.Z|
|00004db0| 20 3d 20 30 3b 0d 0a 09 | 44 69 73 74 20 3d 20 56 | = 0;...|Dist = V|
|00004dc0| 53 69 7a 65 28 53 63 72 | 65 65 6e 4c 6f 63 61 74 |Size(Scr|eenLocat|
|00004dd0| 69 6f 6e 29 3b 0d 0a 09 | 69 66 20 28 20 62 49 67 |ion);...|if ( bIg|
|00004de0| 6e 6f 72 65 52 61 6e 67 | 65 20 7c 7c 20 28 44 69 |noreRang|e || (Di|
|00004df0| 73 74 20 3c 20 28 52 61 | 6e 67 65 20 2a 20 30 2e |st < (Ra|nge * 0.|
|00004e00| 39 35 29 29 20 29 0d 0a | 09 7b 0d 0a 20 20 20 20 |95)) )..|.{.. |
|00004e10| 20 20 20 20 53 63 72 65 | 65 6e 50 6f 73 2e 58 20 | Scre|enPos.X |
|00004e20| 3d 20 53 63 72 65 65 6e | 58 20 2b 20 53 63 72 65 |= Screen|X + Scre|
|00004e30| 65 6e 4c 6f 63 61 74 69 | 6f 6e 2e 58 20 2a 20 28 |enLocati|on.X * (|
|00004e40| 52 61 64 61 72 57 69 64 | 74 68 2f 52 61 6e 67 65 |RadarWid|th/Range|
|00004e50| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 53 63 72 65 |);.. | Scre|
|00004e60| 65 6e 50 6f 73 2e 59 20 | 3d 20 53 63 72 65 65 6e |enPos.Y |= Screen|
|00004e70| 59 20 2b 20 53 63 72 65 | 65 6e 4c 6f 63 61 74 69 |Y + Scre|enLocati|
|00004e80| 6f 6e 2e 59 20 2a 20 28 | 52 61 64 61 72 57 69 64 |on.Y * (|RadarWid|
|00004e90| 74 68 2f 52 61 6e 67 65 | 29 3b 0d 0a 20 20 20 20 |th/Range|);.. |
|00004ea0| 20 20 20 20 53 63 72 65 | 65 6e 50 6f 73 2e 5a 20 | Scre|enPos.Z |
|00004eb0| 3d 20 30 3b 0d 0a 20 20 | 20 20 20 20 20 20 72 65 |= 0;.. | re|
|00004ec0| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 20 20 20 20 |turn tru|e;.. |
|00004ed0| 7d 0d 0a 0d 0a 20 20 20 | 20 72 65 74 75 72 6e 20 |}.... | return |
|00004ee0| 66 61 6c 73 65 3b 0d 0a | 7d 0d 0a 0d 0a 73 69 6d |false;..|}....sim|
|00004ef0| 75 6c 61 74 65 64 20 73 | 74 61 74 69 63 20 66 75 |ulated s|tatic fu|
|00004f00| 6e 63 74 69 6f 6e 20 44 | 72 61 77 4d 61 70 49 6d |nction D|rawMapIm|
|00004f10| 61 67 65 28 20 43 61 6e | 76 61 73 20 43 2c 20 4d |age( Can|vas C, M|
|00004f20| 61 74 65 72 69 61 6c 20 | 49 6d 61 67 65 2c 20 66 |aterial |Image, f|
|00004f30| 6c 6f 61 74 20 4d 61 70 | 58 2c 20 66 6c 6f 61 74 |loat Map|X, float|
|00004f40| 20 4d 61 70 59 2c 20 66 | 6c 6f 61 74 20 50 6c 61 | MapY, f|loat Pla|
|00004f50| 79 65 72 58 2c 20 66 6c | 6f 61 74 20 50 6c 61 79 |yerX, fl|oat Play|
|00004f60| 65 72 59 2c 20 76 65 63 | 74 6f 72 20 44 69 6d 65 |erY, vec|tor Dime|
|00004f70| 6e 73 69 6f 6e 73 20 29 | 0d 0a 7b 0d 0a 09 6c 6f |nsions )|..{...lo|
|00004f80| 63 61 6c 20 66 6c 6f 61 | 74 20 4d 61 70 53 63 61 |cal floa|t MapSca|
|00004f90| 6c 65 2c 20 4d 61 70 53 | 69 7a 65 3b 0d 0a 09 6c |le, MapS|ize;...l|
|00004fa0| 6f 63 61 6c 20 62 79 74 | 65 20 20 53 61 76 65 64 |ocal byt|e Saved|
|00004fb0| 41 6c 70 68 61 3b 0d 0a | 0d 0a 09 2f 2a 0d 0a 09 |Alpha;..|.../*...|
|00004fc0| 44 69 6d 65 6e 73 69 6f | 6e 73 2e 58 20 3d 20 57 |Dimensio|ns.X = W|
|00004fd0| 69 64 74 68 0d 0a 09 44 | 69 6d 65 6e 73 69 6f 6e |idth...D|imension|
|00004fe0| 73 2e 59 20 3d 20 52 61 | 6e 67 65 0d 0a 09 44 69 |s.Y = Ra|nge...Di|
|00004ff0| 6d 65 6e 73 69 6f 6e 73 | 2e 5a 20 3d 20 41 6c 70 |mensions|.Z = Alp|
|00005000| 68 61 0d 0a 0d 0a 09 2a | 2f 0d 0a 0d 0a 09 69 66 |ha.....*|/.....if|
|00005010| 20 28 20 49 6d 61 67 65 | 20 3d 3d 20 4e 6f 6e 65 | ( Image| == None|
|00005020| 20 7c 7c 20 43 20 3d 3d | 20 4e 6f 6e 65 20 29 0d | || C ==| None ).|
|00005030| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 09 4d |...retur|n;.....M|
|00005040| 61 70 53 69 7a 65 20 3d | 20 49 6d 61 67 65 2e 4d |apSize =| Image.M|
|00005050| 61 74 65 72 69 61 6c 55 | 53 69 7a 65 28 29 3b 0d |aterialU|Size();.|
|00005060| 0a 09 4d 61 70 53 63 61 | 6c 65 20 3d 20 4d 61 70 |..MapSca|le = Map|
|00005070| 53 69 7a 65 20 2f 20 28 | 44 69 6d 65 6e 73 69 6f |Size / (|Dimensio|
|00005080| 6e 73 2e 59 20 2a 20 32 | 29 3b 0d 0a 0d 0a 09 53 |ns.Y * 2|);.....S|
|00005090| 61 76 65 64 41 6c 70 68 | 61 20 3d 20 43 2e 44 72 |avedAlph|a = C.Dr|
|000050a0| 61 77 43 6f 6c 6f 72 2e | 41 3b 0d 0a 0d 0a 09 43 |awColor.|A;.....C|
|000050b0| 2e 44 72 61 77 43 6f 6c | 6f 72 20 3d 20 64 65 66 |.DrawCol|or = def|
|000050c0| 61 75 6c 74 2e 57 68 69 | 74 65 43 6f 6c 6f 72 3b |ault.Whi|teColor;|
|000050d0| 0d 0a 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 2e 41 |...C.Dra|wColor.A|
|000050e0| 20 3d 20 44 69 6d 65 6e | 73 69 6f 6e 73 2e 5a 3b | = Dimen|sions.Z;|
|000050f0| 0d 0a 0d 0a 09 43 2e 53 | 65 74 50 6f 73 28 20 4d |.....C.S|etPos( M|
|00005100| 61 70 58 20 2d 20 44 69 | 6d 65 6e 73 69 6f 6e 73 |apX - Di|mensions|
|00005110| 2e 58 2c 20 4d 61 70 59 | 20 2d 20 44 69 6d 65 6e |.X, MapY| - Dimen|
|00005120| 73 69 6f 6e 73 2e 58 20 | 29 3b 0d 0a 09 43 2e 44 |sions.X |);...C.D|
|00005130| 72 61 77 54 69 6c 65 28 | 20 49 6d 61 67 65 2c 20 |rawTile(| Image, |
|00005140| 44 69 6d 65 6e 73 69 6f | 6e 73 2e 58 20 2a 20 32 |Dimensio|ns.X * 2|
|00005150| 2e 30 2c 20 44 69 6d 65 | 6e 73 69 6f 6e 73 2e 58 |.0, Dime|nsions.X|
|00005160| 20 2a 20 32 2e 30 2c 0d | 0a 09 20 20 20 20 20 20 | * 2.0,.|.. |
|00005170| 20 20 20 20 20 28 50 6c | 61 79 65 72 58 20 2d 20 | (Pl|ayerX - |
|00005180| 44 69 6d 65 6e 73 69 6f | 6e 73 2e 59 29 20 2a 20 |Dimensio|ns.Y) * |
|00005190| 4d 61 70 53 63 61 6c 65 | 20 2b 20 4d 61 70 53 69 |MapScale| + MapSi|
|000051a0| 7a 65 20 2f 20 32 2e 30 | 2c 0d 0a 09 09 09 20 20 |ze / 2.0|,..... |
|000051b0| 20 28 50 6c 61 79 65 72 | 59 20 2d 20 44 69 6d 65 | (Player|Y - Dime|
|000051c0| 6e 73 69 6f 6e 73 2e 59 | 29 20 2a 20 4d 61 70 53 |nsions.Y|) * MapS|
|000051d0| 63 61 6c 65 20 2b 20 4d | 61 70 53 69 7a 65 20 2f |cale + M|apSize /|
|000051e0| 20 32 2e 30 2c 0d 0a 09 | 09 09 20 20 20 44 69 6d | 2.0,...|.. Dim|
|000051f0| 65 6e 73 69 6f 6e 73 2e | 59 20 2a 20 32 20 2a 20 |ensions.|Y * 2 * |
|00005200| 4d 61 70 53 63 61 6c 65 | 2c 20 44 69 6d 65 6e 73 |MapScale|, Dimens|
|00005210| 69 6f 6e 73 2e 59 20 2a | 20 32 20 2a 20 4d 61 70 |ions.Y *| 2 * Map|
|00005220| 53 63 61 6c 65 20 29 3b | 0d 0a 0d 0a 09 43 2e 44 |Scale );|.....C.D|
|00005230| 72 61 77 43 6f 6c 6f 72 | 2e 41 20 3d 20 53 61 76 |rawColor|.A = Sav|
|00005240| 65 64 41 6c 70 68 61 3b | 0d 0a 7d 0d 0a 0d 0a 73 |edAlpha;|..}....s|
|00005250| 69 6d 75 6c 61 74 65 64 | 20 73 74 61 74 69 63 20 |imulated| static |
|00005260| 66 75 6e 63 74 69 6f 6e | 20 44 72 61 77 41 74 74 |function| DrawAtt|
|00005270| 61 63 6b 49 63 6f 6e 28 | 20 43 61 6e 76 61 73 20 |ackIcon(| Canvas |
|00005280| 43 2c 20 4f 4e 53 50 6f | 77 65 72 43 6f 72 65 20 |C, ONSPo|werCore |
|00005290| 43 75 72 43 6f 72 65 2c | 20 76 65 63 74 6f 72 20 |CurCore,| vector |
|000052a0| 48 55 44 4c 6f 63 61 74 | 69 6f 6e 2c 20 66 6c 6f |HUDLocat|ion, flo|
|000052b0| 61 74 20 49 63 6f 6e 53 | 63 61 6c 69 6e 67 2c 20 |at IconS|caling, |
|000052c0| 66 6c 6f 61 74 20 48 55 | 44 53 63 61 6c 69 6e 67 |float HU|DScaling|
|000052d0| 2c 20 66 6c 6f 61 74 20 | 43 6f 6c 6f 72 50 65 72 |, float |ColorPer|
|000052e0| 63 65 6e 74 61 67 65 20 | 29 0d 0a 7b 0d 0a 09 6c |centage |)..{...l|
|000052f0| 6f 63 61 6c 20 66 6c 6f | 61 74 20 41 74 74 61 63 |ocal flo|at Attac|
|00005300| 6b 49 63 6f 6e 53 69 7a | 65 2c 20 43 6f 72 65 49 |kIconSiz|e, CoreI|
|00005310| 63 6f 6e 53 69 7a 65 3b | 0d 0a 09 6c 6f 63 61 6c |conSize;|...local|
|00005320| 20 63 6f 6c 6f 72 20 48 | 6f 6c 64 43 6f 6c 6f 72 | color H|oldColor|
|00005330| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 43 20 3d 3d 20 |;.....if| ( C == |
|00005340| 4e 6f 6e 65 20 29 0d 0a | 09 09 72 65 74 75 72 6e |None )..|..return|
|00005350| 3b 0d 0a 0d 0a 20 20 20 | 20 69 66 20 28 43 75 72 |;.... | if (Cur|
|00005360| 43 6f 72 65 2e 62 46 69 | 6e 61 6c 43 6f 72 65 29 |Core.bFi|nalCore)|
|00005370| 0d 0a 09 20 20 20 43 6f | 72 65 49 63 6f 6e 53 69 |... Co|reIconSi|
|00005380| 7a 65 20 3d 20 32 2e 30 | 20 2a 20 49 63 6f 6e 53 |ze = 2.0| * IconS|
|00005390| 63 61 6c 69 6e 67 20 2a | 20 31 36 20 2a 20 43 2e |caling *| 16 * C.|
|000053a0| 43 6c 69 70 58 20 2a 20 | 48 55 44 53 63 61 6c 69 |ClipX * |HUDScali|
|000053b0| 6e 67 2f 31 36 30 30 3b | 0d 0a 09 65 6c 73 65 0d |ng/1600;|...else.|
|000053c0| 0a 09 20 20 20 43 6f 72 | 65 49 63 6f 6e 53 69 7a |.. Cor|eIconSiz|
|000053d0| 65 20 3d 20 49 63 6f 6e | 53 63 61 6c 69 6e 67 20 |e = Icon|Scaling |
|000053e0| 2a 20 31 36 20 2a 20 43 | 2e 43 6c 69 70 58 20 2a |* 16 * C|.ClipX *|
|000053f0| 20 48 55 44 53 63 61 6c | 69 6e 67 2f 31 36 30 30 | HUDScal|ing/1600|
|00005400| 3b 0d 0a 0d 0a 20 20 20 | 20 41 74 74 61 63 6b 49 |;.... | AttackI|
|00005410| 63 6f 6e 53 69 7a 65 20 | 3d 20 43 6f 72 65 49 63 |conSize |= CoreIc|
|00005420| 6f 6e 53 69 7a 65 20 2a | 20 28 32 2e 35 20 2b 20 |onSize *| (2.5 + |
|00005430| 31 2e 35 20 2a 20 43 6f | 6c 6f 72 50 65 72 63 65 |1.5 * Co|lorPerce|
|00005440| 6e 74 61 67 65 29 3b 0d | 0a 0d 0a 20 20 20 20 48 |ntage);.|... H|
|00005450| 6f 6c 64 43 6f 6c 6f 72 | 20 3d 20 43 2e 44 72 61 |oldColor| = C.Dra|
|00005460| 77 43 6f 6c 6f 72 3b 0d | 0a 0d 0a 20 20 20 20 69 |wColor;.|... i|
|00005470| 66 20 28 43 75 72 43 6f | 72 65 2e 62 53 65 76 65 |f (CurCo|re.bSeve|
|00005480| 72 65 64 20 26 26 20 43 | 75 72 43 6f 72 65 2e 43 |red && C|urCore.C|
|00005490| 6f 72 65 53 74 61 67 65 | 20 3d 3d 20 30 29 0d 0a |oreStage| == 0)..|
|000054a0| 20 20 20 20 20 20 20 20 | 43 2e 44 72 61 77 43 6f | |C.DrawCo|
|000054b0| 6c 6f 72 20 3d 20 64 65 | 66 61 75 6c 74 2e 53 65 |lor = de|fault.Se|
|000054c0| 76 65 72 65 64 43 6f 6c | 6f 72 41 20 2a 20 43 6f |veredCol|orA * Co|
|000054d0| 6c 6f 72 50 65 72 63 65 | 6e 74 61 67 65 20 2b 20 |lorPerce|ntage + |
|000054e0| 64 65 66 61 75 6c 74 2e | 53 65 76 65 72 65 64 43 |default.|SeveredC|
|000054f0| 6f 6c 6f 72 42 20 2a 20 | 28 31 2e 30 20 2d 20 43 |olorB * |(1.0 - C|
|00005500| 6f 6c 6f 72 50 65 72 63 | 65 6e 74 61 67 65 29 3b |olorPerc|entage);|
|00005510| 0d 0a 20 20 20 20 65 6c | 73 65 0d 0a 20 20 20 20 |.. el|se.. |
|00005520| 20 20 20 20 43 2e 44 72 | 61 77 43 6f 6c 6f 72 20 | C.Dr|awColor |
|00005530| 3d 20 64 65 66 61 75 6c | 74 2e 41 74 74 61 63 6b |= defaul|t.Attack|
|00005540| 43 6f 6c 6f 72 41 20 2a | 20 43 6f 6c 6f 72 50 65 |ColorA *| ColorPe|
|00005550| 72 63 65 6e 74 61 67 65 | 20 2b 20 64 65 66 61 75 |rcentage| + defau|
|00005560| 6c 74 2e 41 74 74 61 63 | 6b 43 6f 6c 6f 72 42 20 |lt.Attac|kColorB |
|00005570| 2a 20 28 31 2e 30 20 2d | 20 43 6f 6c 6f 72 50 65 |* (1.0 -| ColorPe|
|00005580| 72 63 65 6e 74 61 67 65 | 29 3b 0d 0a 0d 0a 20 20 |rcentage|);.... |
|00005590| 20 20 43 2e 53 65 74 50 | 6f 73 28 48 55 44 4c 6f | C.SetP|os(HUDLo|
|000055a0| 63 61 74 69 6f 6e 2e 58 | 20 2d 20 41 74 74 61 63 |cation.X| - Attac|
|000055b0| 6b 49 63 6f 6e 53 69 7a | 65 20 2a 20 30 2e 35 2c |kIconSiz|e * 0.5,|
|000055c0| 20 48 55 44 4c 6f 63 61 | 74 69 6f 6e 2e 59 20 2d | HUDLoca|tion.Y -|
|000055d0| 20 41 74 74 61 63 6b 49 | 63 6f 6e 53 69 7a 65 20 | AttackI|conSize |
|000055e0| 2a 20 30 2e 35 29 3b 0d | 0a 20 20 20 20 43 2e 44 |* 0.5);.|. C.D|
|000055f0| 72 61 77 54 69 6c 65 28 | 4d 61 74 65 72 69 61 6c |rawTile(|Material|
|00005600| 27 4e 65 77 48 55 44 49 | 63 6f 6e 73 27 2c 20 41 |'NewHUDI|cons', A|
|00005610| 74 74 61 63 6b 49 63 6f | 6e 53 69 7a 65 2c 20 41 |ttackIco|nSize, A|
|00005620| 74 74 61 63 6b 49 63 6f | 6e 53 69 7a 65 2c 20 30 |ttackIco|nSize, 0|
|00005630| 2c 20 36 34 2c 20 36 34 | 2c 20 36 34 29 3b 0d 0a |, 64, 64|, 64);..|
|00005640| 20 20 20 20 43 2e 44 72 | 61 77 43 6f 6c 6f 72 20 | C.Dr|awColor |
|00005650| 3d 20 48 6f 6c 64 43 6f | 6c 6f 72 3b 0d 0a 7d 0d |= HoldCo|lor;..}.|
|00005660| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 73 74 61 |...simul|ated sta|
|00005670| 74 69 63 20 66 75 6e 63 | 74 69 6f 6e 20 44 72 61 |tic func|tion Dra|
|00005680| 77 43 6f 72 65 49 63 6f | 6e 28 20 43 61 6e 76 61 |wCoreIco|n( Canva|
|00005690| 73 20 43 2c 20 76 65 63 | 74 6f 72 20 48 55 44 4c |s C, vec|tor HUDL|
|000056a0| 6f 63 61 74 69 6f 6e 2c | 20 62 6f 6f 6c 20 62 41 |ocation,| bool bA|
|000056b0| 74 74 61 63 6b 61 62 6c | 65 2c 20 66 6c 6f 61 74 |ttackabl|e, float|
|000056c0| 20 49 63 6f 6e 53 63 61 | 6c 69 6e 67 2c 20 66 6c | IconSca|ling, fl|
|000056d0| 6f 61 74 20 48 55 44 53 | 63 61 6c 69 6e 67 2c 20 |oat HUDS|caling, |
|000056e0| 66 6c 6f 61 74 20 43 6f | 6c 6f 72 50 65 72 63 65 |float Co|lorPerce|
|000056f0| 6e 74 61 67 65 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |ntage ).|.{...loc|
|00005700| 61 6c 20 66 6c 6f 61 74 | 20 43 6f 72 65 49 63 6f |al float| CoreIco|
|00005710| 6e 53 69 7a 65 3b 0d 0a | 2f 2f 09 6c 6f 63 61 6c |nSize;..|//.local|
|00005720| 20 63 6f 6c 6f 72 20 48 | 6f 6c 64 43 6f 6c 6f 72 | color H|oldColor|
|00005730| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 43 20 3d 3d 20 |;.....if| ( C == |
|00005740| 4e 6f 6e 65 20 29 0d 0a | 09 09 72 65 74 75 72 6e |None )..|..return|
|00005750| 3b 0d 0a 0d 0a 09 43 6f | 72 65 49 63 6f 6e 53 69 |;.....Co|reIconSi|
|00005760| 7a 65 20 3d 20 49 63 6f | 6e 53 63 61 6c 69 6e 67 |ze = Ico|nScaling|
|00005770| 20 2a 20 31 36 20 2a 20 | 43 2e 43 6c 69 70 58 20 | * 16 * |C.ClipX |
|00005780| 2a 20 48 55 44 53 63 61 | 6c 69 6e 67 2f 31 36 30 |* HUDSca|ling/160|
|00005790| 30 3b 0d 0a 20 20 20 20 | 43 2e 53 65 74 50 6f 73 |0;.. |C.SetPos|
|000057a0| 28 48 55 44 4c 6f 63 61 | 74 69 6f 6e 2e 58 20 2d |(HUDLoca|tion.X -|
|000057b0| 20 43 6f 72 65 49 63 6f | 6e 53 69 7a 65 20 2a 20 | CoreIco|nSize * |
|000057c0| 33 2e 30 20 2a 20 30 2e | 35 2c 20 48 55 44 4c 6f |3.0 * 0.|5, HUDLo|
|000057d0| 63 61 74 69 6f 6e 2e 59 | 20 2d 20 43 6f 72 65 49 |cation.Y| - CoreI|
|000057e0| 63 6f 6e 53 69 7a 65 20 | 2a 20 33 2e 30 20 2a 20 |conSize |* 3.0 * |
|000057f0| 30 2e 35 29 3b 0d 0a 0d | 0a 2f 2f 20 20 20 20 48 |0.5);...|.// H|
|00005800| 6f 6c 64 43 6f 6c 6f 72 | 20 3d 20 43 2e 44 72 61 |oldColor| = C.Dra|
|00005810| 77 43 6f 6c 6f 72 3b 0d | 0a 0d 0a 20 20 20 20 69 |wColor;.|... i|
|00005820| 66 20 28 62 41 74 74 61 | 63 6b 61 62 6c 65 29 0d |f (bAtta|ckable).|
|00005830| 0a 20 20 20 20 20 20 20 | 20 43 2e 44 72 61 77 43 |. | C.DrawC|
|00005840| 6f 6c 6f 72 20 3d 20 43 | 2e 44 72 61 77 43 6f 6c |olor = C|.DrawCol|
|00005850| 6f 72 20 2a 20 43 6f 6c | 6f 72 50 65 72 63 65 6e |or * Col|orPercen|
|00005860| 74 61 67 65 20 2b 20 28 | 43 2e 44 72 61 77 43 6f |tage + (|C.DrawCo|
|00005870| 6c 6f 72 20 2a 20 30 2e | 35 29 20 2a 20 28 31 2e |lor * 0.|5) * (1.|
|00005880| 30 20 2d 20 43 6f 6c 6f | 72 50 65 72 63 65 6e 74 |0 - Colo|rPercent|
|00005890| 61 67 65 29 3b 0d 0a 0d | 0a 20 20 20 20 43 2e 44 |age);...|. C.D|
|000058a0| 72 61 77 54 69 6c 65 28 | 4d 61 74 65 72 69 61 6c |rawTile(|Material|
|000058b0| 27 4e 65 77 48 55 44 49 | 63 6f 6e 73 27 2c 20 43 |'NewHUDI|cons', C|
|000058c0| 6f 72 65 49 63 6f 6e 53 | 69 7a 65 20 2a 20 33 2e |oreIconS|ize * 3.|
|000058d0| 30 2c 20 43 6f 72 65 49 | 63 6f 6e 53 69 7a 65 20 |0, CoreI|conSize |
|000058e0| 2a 20 33 2e 30 2c 20 36 | 34 2c 20 30 2c 20 36 34 |* 3.0, 6|4, 0, 64|
|000058f0| 2c 20 36 34 29 3b 0d 0a | 2f 2f 20 20 20 20 43 2e |, 64);..|// C.|
|00005900| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 48 6f 6c 64 |DrawColo|r = Hold|
|00005910| 43 6f 6c 6f 72 3b 0d 0a | 7d 0d 0a 0d 0a 73 69 6d |Color;..|}....sim|
|00005920| 75 6c 61 74 65 64 20 73 | 74 61 74 69 63 20 66 75 |ulated s|tatic fu|
|00005930| 6e 63 74 69 6f 6e 20 44 | 72 61 77 4e 6f 64 65 49 |nction D|rawNodeI|
|00005940| 63 6f 6e 28 20 43 61 6e | 76 61 73 20 43 2c 20 76 |con( Can|vas C, v|
|00005950| 65 63 74 6f 72 20 48 55 | 44 4c 6f 63 61 74 69 6f |ector HU|DLocatio|
|00005960| 6e 2c 20 62 6f 6f 6c 20 | 62 41 74 74 61 63 6b 61 |n, bool |bAttacka|
|00005970| 62 6c 65 2c 20 62 79 74 | 65 20 53 74 61 67 65 2c |ble, byt|e Stage,|
|00005980| 20 66 6c 6f 61 74 20 49 | 63 6f 6e 53 63 61 6c 69 | float I|conScali|
|00005990| 6e 67 2c 20 66 6c 6f 61 | 74 20 48 55 44 53 63 61 |ng, floa|t HUDSca|
|000059a0| 6c 69 6e 67 2c 20 66 6c | 6f 61 74 20 43 6f 6c 6f |ling, fl|oat Colo|
|000059b0| 72 50 65 72 63 65 6e 74 | 61 67 65 20 29 0d 0a 7b |rPercent|age )..{|
|000059c0| 0d 0a 09 6c 6f 63 61 6c | 20 66 6c 6f 61 74 20 43 |...local| float C|
|000059d0| 6f 72 65 49 63 6f 6e 53 | 69 7a 65 3b 0d 0a 0d 0a |oreIconS|ize;....|
|000059e0| 09 69 66 20 28 20 43 20 | 3d 3d 20 4e 6f 6e 65 20 |.if ( C |== None |
|000059f0| 29 0d 0a 09 09 72 65 74 | 75 72 6e 3b 0d 0a 0d 0a |)....ret|urn;....|
|00005a00| 09 43 6f 72 65 49 63 6f | 6e 53 69 7a 65 20 3d 20 |.CoreIco|nSize = |
|00005a10| 49 63 6f 6e 53 63 61 6c | 69 6e 67 20 2a 20 31 36 |IconScal|ing * 16|
|00005a20| 20 2a 20 43 2e 43 6c 69 | 70 58 20 2a 20 48 55 44 | * C.Cli|pX * HUD|
|00005a30| 53 63 61 6c 69 6e 67 2f | 31 36 30 30 3b 0d 0a 20 |Scaling/|1600;.. |
|00005a40| 20 20 20 69 66 20 28 53 | 74 61 67 65 20 3d 3d 20 | if (S|tage == |
|00005a50| 34 20 7c 7c 20 53 74 61 | 67 65 20 3d 3d 20 31 29 |4 || Sta|ge == 1)|
|00005a60| 0d 0a 20 20 20 20 7b 0d | 0a 20 20 20 20 20 20 20 |.. {.|. |
|00005a70| 20 69 66 20 28 62 41 74 | 74 61 63 6b 61 62 6c 65 | if (bAt|tackable|
|00005a80| 29 0d 0a 20 20 20 20 20 | 20 20 20 7b 0d 0a 20 20 |).. | {.. |
|00005a90| 20 20 20 20 20 20 20 20 | 20 20 43 2e 53 65 74 50 | | C.SetP|
|00005aa0| 6f 73 28 48 55 44 4c 6f | 63 61 74 69 6f 6e 2e 58 |os(HUDLo|cation.X|
|00005ab0| 20 2d 20 43 6f 72 65 49 | 63 6f 6e 53 69 7a 65 20 | - CoreI|conSize |
|00005ac0| 2a 20 30 2e 37 35 20 2a | 20 30 2e 35 2c 20 48 55 |* 0.75 *| 0.5, HU|
|00005ad0| 44 4c 6f 63 61 74 69 6f | 6e 2e 59 20 2d 20 43 6f |DLocatio|n.Y - Co|
|00005ae0| 72 65 49 63 6f 6e 53 69 | 7a 65 20 2a 20 30 2e 37 |reIconSi|ze * 0.7|
|00005af0| 35 20 2a 20 30 2e 35 29 | 3b 0d 0a 20 20 20 20 20 |5 * 0.5)|;.. |
|00005b00| 20 20 20 20 20 20 20 43 | 2e 44 72 61 77 54 69 6c | C|.DrawTil|
|00005b10| 65 28 4d 61 74 65 72 69 | 61 6c 27 4e 65 77 48 55 |e(Materi|al'NewHU|
|00005b20| 44 49 63 6f 6e 73 27 2c | 20 43 6f 72 65 49 63 6f |DIcons',| CoreIco|
|00005b30| 6e 53 69 7a 65 20 2a 20 | 30 2e 37 35 2c 20 43 6f |nSize * |0.75, Co|
|00005b40| 72 65 49 63 6f 6e 53 69 | 7a 65 20 2a 20 30 2e 37 |reIconSi|ze * 0.7|
|00005b50| 35 2c 20 30 2c 20 30 2c | 20 33 32 2c 20 33 32 29 |5, 0, 0,| 32, 32)|
|00005b60| 3b 0d 0a 20 20 20 20 20 | 20 20 20 7d 0d 0a 20 20 |;.. | }.. |
|00005b70| 20 20 20 20 20 20 65 6c | 73 65 0d 0a 20 20 20 20 | el|se.. |
|00005b80| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00005b90| 20 20 20 43 2e 53 65 74 | 50 6f 73 28 48 55 44 4c | C.Set|Pos(HUDL|
|00005ba0| 6f 63 61 74 69 6f 6e 2e | 58 20 2d 20 43 6f 72 65 |ocation.|X - Core|
|00005bb0| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 31 2e 37 35 20 |IconSize| * 1.75 |
|00005bc0| 2a 20 30 2e 35 2c 20 48 | 55 44 4c 6f 63 61 74 69 |* 0.5, H|UDLocati|
|00005bd0| 6f 6e 2e 59 20 2d 20 43 | 6f 72 65 49 63 6f 6e 53 |on.Y - C|oreIconS|
|00005be0| 69 7a 65 20 2a 20 31 2e | 37 35 20 2a 20 30 2e 35 |ize * 1.|75 * 0.5|
|00005bf0| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | |
|00005c00| 43 2e 44 72 61 77 54 69 | 6c 65 28 4d 61 74 65 72 |C.DrawTi|le(Mater|
|00005c10| 69 61 6c 27 4e 65 77 48 | 55 44 49 63 6f 6e 73 27 |ial'NewH|UDIcons'|
|00005c20| 2c 20 43 6f 72 65 49 63 | 6f 6e 53 69 7a 65 20 2a |, CoreIc|onSize *|
|00005c30| 20 31 2e 37 35 2c 20 43 | 6f 72 65 49 63 6f 6e 53 | 1.75, C|oreIconS|
|00005c40| 69 7a 65 20 2a 20 31 2e | 37 35 2c 20 30 2c 20 33 |ize * 1.|75, 0, 3|
|00005c50| 32 2c 20 33 32 2c 20 33 | 32 29 3b 0d 0a 20 20 20 |2, 32, 3|2);.. |
|00005c60| 20 20 20 20 20 7d 0d 0a | 20 20 20 20 7d 0d 0a 20 | }..| }.. |
|00005c70| 20 20 20 65 6c 73 65 0d | 0a 09 7b 0d 0a 09 09 69 | else.|..{....i|
|00005c80| 66 20 28 20 53 74 61 67 | 65 20 21 3d 20 30 20 29 |f ( Stag|e != 0 )|
|00005c90| 0d 0a 09 09 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |.....C.D|rawColor|
|00005ca0| 20 3d 20 43 2e 44 72 61 | 77 43 6f 6c 6f 72 20 2a | = C.Dra|wColor *|
|00005cb0| 20 43 6f 6c 6f 72 50 65 | 72 63 65 6e 74 61 67 65 | ColorPe|rcentage|
|00005cc0| 20 2b 20 64 65 66 61 75 | 6c 74 2e 4c 69 6e 6b 43 | + defau|lt.LinkC|
|00005cd0| 6f 6c 6f 72 5b 32 5d 20 | 2a 20 28 31 2e 30 20 2d |olor[2] |* (1.0 -|
|00005ce0| 20 43 6f 6c 6f 72 50 65 | 72 63 65 6e 74 61 67 65 | ColorPe|rcentage|
|00005cf0| 29 3b 0d 0a 0d 0a 09 09 | 69 66 20 28 62 41 74 74 |);......|if (bAtt|
|00005d00| 61 63 6b 61 62 6c 65 29 | 0d 0a 09 20 20 20 20 7b |ackable)|... {|
|00005d10| 0d 0a 09 20 20 20 20 20 | 20 20 20 43 2e 53 65 74 |... | C.Set|
|00005d20| 50 6f 73 28 48 55 44 4c | 6f 63 61 74 69 6f 6e 2e |Pos(HUDL|ocation.|
|00005d30| 58 20 2d 20 43 6f 72 65 | 49 63 6f 6e 53 69 7a 65 |X - Core|IconSize|
|00005d40| 20 2a 20 32 2e 30 20 2a | 20 30 2e 35 2c 20 48 55 | * 2.0 *| 0.5, HU|
|00005d50| 44 4c 6f 63 61 74 69 6f | 6e 2e 59 20 2d 20 43 6f |DLocatio|n.Y - Co|
|00005d60| 72 65 49 63 6f 6e 53 69 | 7a 65 20 2a 20 32 2e 30 |reIconSi|ze * 2.0|
|00005d70| 20 2a 20 30 2e 35 29 3b | 0d 0a 09 20 20 20 20 20 | * 0.5);|... |
|00005d80| 20 20 20 43 2e 44 72 61 | 77 54 69 6c 65 28 4d 61 | C.Dra|wTile(Ma|
|00005d90| 74 65 72 69 61 6c 27 4e | 65 77 48 55 44 49 63 6f |terial'N|ewHUDIco|
|00005da0| 6e 73 27 2c 20 43 6f 72 | 65 49 63 6f 6e 53 69 7a |ns', Cor|eIconSiz|
|00005db0| 65 20 2a 20 32 2e 30 2c | 20 43 6f 72 65 49 63 6f |e * 2.0,| CoreIco|
|00005dc0| 6e 53 69 7a 65 20 2a 20 | 32 2e 30 2c 20 33 32 2c |nSize * |2.0, 32,|
|00005dd0| 20 30 2c 20 33 32 2c 20 | 33 32 29 3b 0d 0a 09 20 | 0, 32, |32);... |
|00005de0| 20 20 20 7d 0d 0a 09 20 | 20 20 20 65 6c 73 65 0d | }... | else.|
|00005df0| 0a 09 20 20 20 20 7b 0d | 0a 09 20 20 20 20 20 20 |.. {.|.. |
|00005e00| 20 20 43 2e 53 65 74 50 | 6f 73 28 48 55 44 4c 6f | C.SetP|os(HUDLo|
|00005e10| 63 61 74 69 6f 6e 2e 58 | 20 2d 20 43 6f 72 65 49 |cation.X| - CoreI|
|00005e20| 63 6f 6e 53 69 7a 65 20 | 2a 20 31 2e 37 35 20 2a |conSize |* 1.75 *|
|00005e30| 20 30 2e 35 2c 20 48 55 | 44 4c 6f 63 61 74 69 6f | 0.5, HU|DLocatio|
|00005e40| 6e 2e 59 20 2d 20 43 6f | 72 65 49 63 6f 6e 53 69 |n.Y - Co|reIconSi|
|00005e50| 7a 65 20 2a 20 31 2e 37 | 35 20 2a 20 30 2e 35 29 |ze * 1.7|5 * 0.5)|
|00005e60| 3b 0d 0a 09 20 20 20 20 | 20 20 20 20 43 2e 44 72 |;... | C.Dr|
|00005e70| 61 77 54 69 6c 65 28 4d | 61 74 65 72 69 61 6c 27 |awTile(M|aterial'|
|00005e80| 4e 65 77 48 55 44 49 63 | 6f 6e 73 27 2c 20 43 6f |NewHUDIc|ons', Co|
|00005e90| 72 65 49 63 6f 6e 53 69 | 7a 65 20 2a 20 31 2e 37 |reIconSi|ze * 1.7|
|00005ea0| 35 2c 20 43 6f 72 65 49 | 63 6f 6e 53 69 7a 65 20 |5, CoreI|conSize |
|00005eb0| 2a 20 31 2e 37 35 2c 20 | 30 2c 20 33 32 2c 20 33 |* 1.75, |0, 32, 3|
|00005ec0| 32 2c 20 33 32 29 3b 0d | 0a 09 20 20 20 20 7d 0d |2, 32);.|.. }.|
|00005ed0| 0a 09 7d 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |..}..}..|..simula|
|00005ee0| 74 65 64 20 73 74 61 74 | 69 63 20 66 75 6e 63 74 |ted stat|ic funct|
|00005ef0| 69 6f 6e 20 44 72 61 77 | 53 70 61 77 6e 49 63 6f |ion Draw|SpawnIco|
|00005f00| 6e 28 20 43 61 6e 76 61 | 73 20 43 2c 20 76 65 63 |n( Canva|s C, vec|
|00005f10| 74 6f 72 20 48 55 44 4c | 6f 63 61 74 69 6f 6e 2c |tor HUDL|ocation,|
|00005f20| 20 62 6f 6f 6c 20 62 46 | 69 6e 61 6c 43 6f 72 65 | bool bF|inalCore|
|00005f30| 2c 20 66 6c 6f 61 74 20 | 49 63 6f 6e 53 63 61 6c |, float |IconScal|
|00005f40| 69 6e 67 2c 20 66 6c 6f | 61 74 20 48 55 44 53 63 |ing, flo|at HUDSc|
|00005f50| 61 6c 69 6e 67 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |aling ).|.{...loc|
|00005f60| 61 6c 20 66 6c 6f 61 74 | 20 43 6f 72 65 49 63 6f |al float| CoreIco|
|00005f70| 6e 53 69 7a 65 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |nSize;..|...if ( |
|00005f80| 43 20 3d 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 72 |C == Non|e )....r|
|00005f90| 65 74 75 72 6e 3b 0d 0a | 0d 0a 09 43 6f 72 65 49 |eturn;..|...CoreI|
|00005fa0| 63 6f 6e 53 69 7a 65 20 | 3d 20 49 63 6f 6e 53 63 |conSize |= IconSc|
|00005fb0| 61 6c 69 6e 67 20 2a 20 | 31 36 20 2a 20 43 2e 43 |aling * |16 * C.C|
|00005fc0| 6c 69 70 58 20 2a 20 48 | 55 44 53 63 61 6c 69 6e |lipX * H|UDScalin|
|00005fd0| 67 2f 31 36 30 30 3b 0d | 0a 20 20 20 20 43 2e 44 |g/1600;.|. C.D|
|00005fe0| 72 61 77 43 6f 6c 6f 72 | 2e 42 20 3d 20 30 3b 0d |rawColor|.B = 0;.|
|00005ff0| 0a 20 20 20 20 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |. C.D|rawColor|
|00006000| 2e 47 20 3d 20 32 30 30 | 3b 0d 0a 20 20 20 20 43 |.G = 200|;.. C|
|00006010| 2e 44 72 61 77 43 6f 6c | 6f 72 2e 52 20 3d 20 30 |.DrawCol|or.R = 0|
|00006020| 3b 0d 0a 20 20 20 20 43 | 2e 44 72 61 77 43 6f 6c |;.. C|.DrawCol|
|00006030| 6f 72 2e 41 20 3d 20 32 | 35 35 3b 0d 0a 0d 0a 20 |or.A = 2|55;.... |
|00006040| 20 20 20 69 66 20 28 62 | 46 69 6e 61 6c 43 6f 72 | if (b|FinalCor|
|00006050| 65 29 0d 0a 20 20 20 20 | 7b 0d 0a 20 20 20 20 20 |e).. |{.. |
|00006060| 20 20 20 43 2e 53 65 74 | 50 6f 73 28 48 55 44 4c | C.Set|Pos(HUDL|
|00006070| 6f 63 61 74 69 6f 6e 2e | 58 20 2d 20 43 6f 72 65 |ocation.|X - Core|
|00006080| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 35 2e 35 20 2a |IconSize| * 5.5 *|
|00006090| 20 30 2e 35 2c 20 48 55 | 44 4c 6f 63 61 74 69 6f | 0.5, HU|DLocatio|
|000060a0| 6e 2e 59 20 2d 20 43 6f | 72 65 49 63 6f 6e 53 69 |n.Y - Co|reIconSi|
|000060b0| 7a 65 20 2a 20 35 2e 35 | 20 2a 20 30 2e 35 29 3b |ze * 5.5| * 0.5);|
|000060c0| 0d 0a 20 20 20 20 20 20 | 20 20 43 2e 44 72 61 77 |.. | C.Draw|
|000060d0| 54 69 6c 65 28 4d 61 74 | 65 72 69 61 6c 27 4e 65 |Tile(Mat|erial'Ne|
|000060e0| 77 48 55 44 49 63 6f 6e | 73 27 2c 20 43 6f 72 65 |wHUDIcon|s', Core|
|000060f0| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 35 2e 35 2c 20 |IconSize| * 5.5, |
|00006100| 43 6f 72 65 49 63 6f 6e | 53 69 7a 65 20 2a 20 35 |CoreIcon|Size * 5|
|00006110| 2e 35 2c 20 36 34 2c 20 | 36 34 2c 20 36 34 2c 20 |.5, 64, |64, 64, |
|00006120| 36 34 29 3b 0d 0a 20 20 | 20 20 7d 0d 0a 20 20 20 |64);.. | }.. |
|00006130| 20 65 6c 73 65 0d 0a 20 | 20 20 20 7b 0d 0a 20 20 | else.. | {.. |
|00006140| 20 20 20 20 20 20 43 2e | 53 65 74 50 6f 73 28 48 | C.|SetPos(H|
|00006150| 55 44 4c 6f 63 61 74 69 | 6f 6e 2e 58 20 2d 20 43 |UDLocati|on.X - C|
|00006160| 6f 72 65 49 63 6f 6e 53 | 69 7a 65 20 2a 20 34 2e |oreIconS|ize * 4.|
|00006170| 35 20 2a 20 30 2e 35 2c | 20 48 55 44 4c 6f 63 61 |5 * 0.5,| HUDLoca|
|00006180| 74 69 6f 6e 2e 59 20 2d | 20 43 6f 72 65 49 63 6f |tion.Y -| CoreIco|
|00006190| 6e 53 69 7a 65 20 2a 20 | 34 2e 35 20 2a 20 30 2e |nSize * |4.5 * 0.|
|000061a0| 35 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 43 2e 44 |5);.. | C.D|
|000061b0| 72 61 77 54 69 6c 65 28 | 4d 61 74 65 72 69 61 6c |rawTile(|Material|
|000061c0| 27 4e 65 77 48 55 44 49 | 63 6f 6e 73 27 2c 20 43 |'NewHUDI|cons', C|
|000061d0| 6f 72 65 49 63 6f 6e 53 | 69 7a 65 20 2a 20 34 2e |oreIconS|ize * 4.|
|000061e0| 35 2c 20 43 6f 72 65 49 | 63 6f 6e 53 69 7a 65 20 |5, CoreI|conSize |
|000061f0| 2a 20 34 2e 35 2c 20 36 | 34 2c 20 36 34 2c 20 36 |* 4.5, 6|4, 64, 6|
|00006200| 34 2c 20 36 34 29 3b 0d | 0a 20 20 20 20 7d 0d 0a |4, 64);.|. }..|
|00006210| 7d 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 73 |}....sim|ulated s|
|00006220| 74 61 74 69 63 20 66 75 | 6e 63 74 69 6f 6e 20 44 |tatic fu|nction D|
|00006230| 72 61 77 53 65 6c 65 63 | 74 69 6f 6e 49 63 6f 6e |rawSelec|tionIcon|
|00006240| 28 20 43 61 6e 76 61 73 | 20 43 2c 20 76 65 63 74 |( Canvas| C, vect|
|00006250| 6f 72 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 2c 20 |or HUDLo|cation, |
|00006260| 63 6f 6c 6f 72 20 49 63 | 6f 6e 43 6f 6c 6f 72 2c |color Ic|onColor,|
|00006270| 20 66 6c 6f 61 74 20 49 | 63 6f 6e 53 63 61 6c 69 | float I|conScali|
|00006280| 6e 67 2c 20 66 6c 6f 61 | 74 20 48 55 44 53 63 61 |ng, floa|t HUDSca|
|00006290| 6c 69 6e 67 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |ling )..|{...loca|
|000062a0| 6c 20 66 6c 6f 61 74 20 | 43 6f 72 65 49 63 6f 6e |l float |CoreIcon|
|000062b0| 53 69 7a 65 3b 0d 0a 0d | 0a 09 69 66 20 28 20 43 |Size;...|..if ( C|
|000062c0| 20 3d 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 72 65 | == None| )....re|
|000062d0| 74 75 72 6e 3b 0d 0a 0d | 0a 09 43 6f 72 65 49 63 |turn;...|..CoreIc|
|000062e0| 6f 6e 53 69 7a 65 20 3d | 20 49 63 6f 6e 53 63 61 |onSize =| IconSca|
|000062f0| 6c 69 6e 67 20 2a 20 31 | 36 20 2a 20 43 2e 43 6c |ling * 1|6 * C.Cl|
|00006300| 69 70 58 20 2a 20 48 55 | 44 53 63 61 6c 69 6e 67 |ipX * HU|DScaling|
|00006310| 2f 31 36 30 30 3b 0d 0a | 0d 0a 09 43 2e 44 72 61 |/1600;..|...C.Dra|
|00006320| 77 43 6f 6c 6f 72 20 3d | 20 49 63 6f 6e 43 6f 6c |wColor =| IconCol|
|00006330| 6f 72 3b 0d 0a 09 43 2e | 53 65 74 50 6f 73 28 20 |or;...C.|SetPos( |
|00006340| 48 55 44 4c 6f 63 61 74 | 69 6f 6e 2e 58 20 2d 20 |HUDLocat|ion.X - |
|00006350| 43 6f 72 65 49 63 6f 6e | 53 69 7a 65 20 2a 20 31 |CoreIcon|Size * 1|
|00006360| 2e 35 2c 20 48 55 44 4c | 6f 63 61 74 69 6f 6e 2e |.5, HUDL|ocation.|
|00006370| 59 20 2d 20 43 6f 72 65 | 49 63 6f 6e 53 69 7a 65 |Y - Core|IconSize|
|00006380| 20 2a 20 31 2e 35 29 3b | 0d 0a 09 43 2e 44 72 61 | * 1.5);|...C.Dra|
|00006390| 77 54 69 6c 65 28 20 4d | 61 74 65 72 69 61 6c 27 |wTile( M|aterial'|
|000063a0| 4e 65 77 48 55 44 49 63 | 6f 6e 73 27 2c 20 43 6f |NewHUDIc|ons', Co|
|000063b0| 72 65 49 63 6f 6e 53 69 | 7a 65 20 2a 20 33 2c 20 |reIconSi|ze * 3, |
|000063c0| 43 6f 72 65 49 63 6f 6e | 53 69 7a 65 20 2a 20 33 |CoreIcon|Size * 3|
|000063d0| 2c 20 33 32 2c 20 33 32 | 2c 20 33 32 2c 20 33 32 |, 32, 32|, 32, 32|
|000063e0| 20 29 3b 0d 0a 7d 0d 0a | 0d 0a 00 | );..}..|... |
+--------+-------------------------+-------------------------+--------+--------+